Reputation: 11
I'm trying to integrate posting to the users wall from within my app using the Facebook SDK. Simple Posting is no Problem but I'm trying to add the Location (on the Bottom of the Post behind the time) where the user actually is.
Any ideas? Thanks for the help!
Upvotes: 1
Views: 1522
Reputation: 4439
This is simple, whenever you are making the Graph API POST call to https://graph.facebook.com/me/feed
you should include a parameter place
with a value of a Page ID associated with a Place. This is shown in the Graph API User documentation.
You can use Graph API search to locate any Page IDs near to a specified location by using a Graph API call like this:
https://graph.facebook.com/search?type=place¢er=37.76,-122.427&distance=1000
Where center
is the latitude and longitude and distance
restricts how far away the place can be from that center.
Upvotes: 3