Facebook user follow through graph api in ios - ios

I want to do follow facebook user in ios using graph api or using some custom api. I prefer this link for php and second one who has no ans or last but not least follower button.
Please help me to follow a user in ios.

Check my answer here: facebook graph api to get follower count of different account
This is no longer possible via the Graph API >= v2.0.

Related

Mutual friends of two users who are not friends on facebook using Parse and Facebook SDK

I am using the latest Parse SDK 1.7.1 and Facebook SDK 4.0.1 on my iOS application. My users can only log in using their facebook account.
A very important feature I need, is showing the number of facebook friends user1 has in common with another user2 (who is probably not friends with user1 on facebook). Let us assume for the following that I do get the user_friends permission from both users.
My first question concerns the following quote from the Graph API docs:
Additionally, the response will only include any mutual friends who
have granted user_friends to the app.
Does this mean that user1 will only see mutual friends that also use my app? Is it possible to just retrieve the number of mutual friends, without the actual list of friends?
My next question concerns the following statement in the Graph API docs:
If you want to call this endpoint on behalf two app-users who are not
friends, then you must provide the appsecret_proof parameter along
with the user access token when making the request. This means you
must call this endpoint from your server.
How does this work together with Parse? Would I need to do this in Cloud-Code? If so, does anyone happen to have some example code for me of how to do a Graph API request from Cloud-Code? I am not familiar with Cloud-Code yet.
Thank you very much in advance for your help, it is very much appreciated!

How can identify Facebook post is already liked or not using Facebook graph API?

I used Facebook Graph API for getting Feeds, I used below query :
me/home?fields=full_picture,description,message,comments,likes,created_time,id,link,caption,name,from.fields(id,name,picture)
Now, How can i identify that Post is already Liked or not by current login user.
You must use the Latest Facebook Graph API... It works for me.

is it possible to (Rate /review) FB page from native ios application?

i want to allow a user to login using facebook id and give rating to the particular FB page . is it possible from native ios application ?
It's not possible to create a Rating via the Graph API. Have a look at the docs at https://developers.facebook.com/docs/graph-api/reference/v2.1/page/ratings
You can only read Ratings.
You can implement SocialFramework, and sharing data on facebook, but not give raiting. More information:
tutorial for SLCompose

Is it possible to get a facebook page info without authenticating by iOS SDK?

I'm trying to show information about certain facebook pages in an iOS app, and I know for a fact that it is not needed any authentication when using the graph api by HTTP but I can't find a way to do it with the iOS SDK. Is this possible or should I get it with the graph API??
You can use the Graph API with just an appid and a key, no Facebook SDK required. See this: Facebook API: Can I simply read posts from wall without loging in?

Facebook API - Create a business page

It's a highly discussed topic over the globe.
But I haven't found a convincing answer or a solution.
All the SO post finally ended up in a NO or a solution with minimum lead.
How to create a Facebook fan page for a website in an automated way?
Creating Facebook Page programmatically through Open Graph API
open-graph-api
Finally this one - Creating facebook business page is POSSIBLE but how?
Pagemodo does lets you create an actual facebook page(I assume its through Facebook javascript SDK).
According to my knowledge Facebook offers following API/SDK
Graph API
FQL
Open Graph
Javascript SDK
Dialogs
Chat
Internationalization
Ads
Public Feed
Keyword Insights
Out of these first 4 should possibly define the page creation API
Graph API - doesn't have any query to POST pages/create
FQL - can't insert(ignore anyway)
OpenGraph - Can we have a object of type:page
Javascript SDK - Am positive on it, that javascript SDK could help(anyone had luck with it ?)
May I know whether its really possible by any means to create a facebook page ?
Does facebook have any other API that allows to create one ?
Any sort of help appreciated.
Thanks!

Resources