Can any one provide any sample to use the Facebook Checkin features in my WP7 app. Also on using the Facebook sdk v6.0.1, there is no Get() method, I can see only Getasync().. Can any one give suggestion on this.
Thanks in advance
Can any one provide any sample to use the Facebook Checkin features in my WP7 app. Also on using the Facebook sdk v6.0.1, there is no Get() method, I can see only Getasync().. Can any one give suggestion on this.
Thanks in advance
WP7 builds of Facebook C# SDK does not have synchronous methods. You will need to use the async alternatives using XAsync methods like GetAsync
, PostAsync
or DeleteAsync
.
With the Search option with the Graph API we can get the nearest places for Facebook checkin
For example: https://graph.facebook.com/search?type=place¢er=13.08784,80.27847&distance=50000&access_token=DeviceToken
Getasync() is just a task-based version of Get(). You should be able to use it to make get requests to the platform, just as you would with Get. Example:
GetAsync("https://graph.facebook.com/me/checkins?method=post&place=110506962309835&coordinates={'latitude':'37.4163458217','longitude':'-122.15198690595'}&access_token=YOURACCESSTOKEN")
You can search for nearby Places via the Search API. See here for documentation developers.facebook.com/docs/reference/api/#searching. Example:
https://graph.facebook.com/search?q=coffee&type=place¢er=37.76%2C-122.427&distance=1000&access_token=AAAAAAITEghMBAO1EYjStduqRsXrouwvoXm0ZBsj9LuD4miJiguLIgE5v7fwXSK8empPcUlacI6Gf34I5a9VTjLHyCb0eYOJODvsnMQQZDZD