How Can I Follow Other facebook Accounts using Facebook Graph API - facebook

I tried follow and og.follow
both didn't worked for me
if Anyone has the PHP Code Then Please Share{PHP SDK}
and Also How To Grab No Of Followers using Graph API{PHP SDK}
P.S:I Am Using BlackBerry Token

The /{user_id}/subscribers edge is no longer available since v2.0:
https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api
/me/subscribers and /me/subscribedto have been removed.

Related

Facebook Graph API - Getting Comments

I'm trying to use Facebook graph API to get all the comments (mine and others) on my Facebook posts.
Currently I'm testing the api using Graph API Explorer & so far I'm getting only my comments.
I want to know did they change their policy or is there a way to get all the comments?
P.S: I didn't write any code so far.
But I followed the link:
https://developers.facebook.com/docs/graph-api/get-started
to use the graph API explorer and this is what I'm getting:
the image
In the "Tools" you will find the tool. And as you can see you will get the list of the comments. I'm just showing one of my comments (testingggg) as an example.
Unfortunately, the API doesn't give me the others' comments.
Am I missing something?
Thank you.
according to the document this is the way to get all the comment docs

Using Facebook Graph to get URL of Cover Photo

I used to be able to get the URL of the cover photo using me?fields=cover
However, it does not seem to show the URL anymore.
https://developers.facebook.com/docs/graph-api/changelog/version3.0
According to the changelog, the cover field is deprecated and will not work anymore in Apps with Graph API v3.0+.

Did Facebook graph just stop working today?

All of a sudden I'm getting errors when doing requests I've used for years. For example:
https://graph.facebook.com/dangoodspeed
Should return info about my account, but instead it returns the error:
(#803) Cannot query users by their username (dangoodspeed)
Other sites that use Facebook Graph like findmyfacebookid.com doesn't work either.
Does anyone know what's going on? Will this be fixed soon? Will I have to rewrite my apps around these errors?
As #WizKid said, this has been announced more than a year ago. You cannot use the username anymore, and this is by design:
https://developers.facebook.com/docs/apps/changelog#v2_0
/me/username is no longer available.
You can find the ID of your profile and include it to your Graph path in V2.3
Find the ID using the Facebook Graph API Explorer.
/v2.3/me
Include your ID to the Graph path as
yourID/feed

Choosing fields in Facebook graph v2.2

I recently upgraded from using Facebook graph v1.0 to using the latest v2.2 and am having trouble migrating over some existing functionality.
I am trying to get the profile pictures along with some other data from the "me/home" request.
My old code was this https://graph.facebook.com/v1.0/me/home?fields=id,from.picture, from.id,to.picture, to.id, story, picture, link, name, description, type, status_type, created_time.
The new graph api doesn't allow the "from.picture" to be completed. How do I get the profile picture included in the "me/home" request?
Thanks,
Mike
It is still possible to get the picture of the poster in one call, with field expansion:
/me/home?fields=from{name,picture}
Source: https://developers.facebook.com/docs/graph-api/using-graph-api/#fieldexpansion

Facebook API: check whether the current user likes certain page

I wonder if it is possible to know whether the user likes facebook page determined without using oauth and using javascript
Hi, I finally found the solution:
Simply make a GET to the following URL:
http://api.facebook.com/restserver.php?method=links.getStats&format=json&urls=https://www.facebook.com/MyFacebookPage
No it is not possible. It was before but it is not allowed or possible anymore