I am already creating facebook posts via the graph api and this works good. In the documentation I can read that I could send a place id to tag the location for the post.
The problem is, how can I get the place id? Is it possible to make a call via search and a location name to find a place id? Or is it possible to find the place id manually via facebook?
Thanks for your help.
And application is using facebook sdk to get user newsfeed via client.Get(request_string) where request_string = "/me/home<some_filters>". And I discovered that sdk and api exprorer return different results with the same request string. Why can it happen?
This is similar to this question.
Some posts not visible on the feed through Graph API /me/home
The reason is Facebook "scores" nodes to derive the most "Top Story". Low scoring nodes are by default not visible. You can force all nodes with
/me/home.filter(owner)<some_filters>
There is no documentation on WHY this actually works, but it does. You can also force all nodes that are Likes or Comments by doing the following
me/posts?fields=likes.filter(stream),comments.filter(stream)
i used to create Facebook APP, checked to get friends list using Access token from Graph API Explorer, it always returning empty data
https://developers.facebook.com/docs/apps/changelog
https://developers.facebook.com/docs/apps/upgrading/
Check those Links, Facebook made a big step forward towards privacy. /me/friends only returns friends who authorized the App too, that´s why the result is empty.
With the introduction of the Facebook Graph API 2.0, access a user’s friends list was removed and limited to just friends who use the same application. However, Facebook added two new APIs to allow retrieval of Friend names (and indirectly a friend count). The two new APIs are taggable_friends and invitable_friends.
In v2.0 of the Graph API, calling /me/friends returns the person's friends who also use the app.
Check this link: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app
When I login with ID my friend and retry send request "me/friends" again. It return ID my Facebook to me. If you need test, you can use this way.
I have currently find this one useful, just posting a snippet:
FB.ui({method: 'apprequests',
message: 'Please sign up .',
filters: ['app_non_users']
}, function(response){
console.log("Response from app requests:"+response);
});
Reference url https://developers.facebook.com/docs/games/requests/v2.1#params
Facebook was updated with version 2.0,
if you want to use Graph API me/friends/, you need to submit your app for review.
Steps to do it:
goto your Apps --> status and Review ---> start a Submission.
then you need to provide your information for review with screen shot.
Submit Items for Approval
Some Facebook integrations require approval before public usage.
Before submitting your app for review, please consult our Platform Policy and Review Guidelines.
I would like to retrieve all of a user's facebook friends with the installed field for my app. With facebook's graph api, it paginates the response, but I don't want to have to make multiple requests per user. Is there a way to do https://graph.facebook.com/<user_id>/friends?fields=installed&access_token=<access_token> to get all friends and not paginated?
If you are wondering, I am using this data to reconstruct a friend graph for my application.
You can add limit to the call to increase the number of results you get. E.g.:
https://graph.facebook.com/<user_id>/friends?fields=installed&access_token=<access_token>&limit=1000
I'm looking into the facebook graph api. I understand that I can retrieve information about a facebook web page by making a get with the current id. It's also clear that after retrieving a access token I can post on the logged in users wall and do other operations.
But what if I want more general data? Can I, for example, get how many swedish user who have used the word "Obama" in their status update the last week?
I don't think that the current search API can be that specific. You can find everything about the search API in this document.