Muthuvel
Muthuvel

Reputation: 526

FaceBook FQL Query Not Working

We have used the v2.0 graph API & FQL(FaceBook Query Language) for getting the FaceBook details in our project. But recently the result is empty.

I have checked the developer.facebook.com and i found one solution that is Login Review process. We need to get the FB details means we need to get the pre approval from FB.(user_photos, user_videos) It'll work perfectly or not ?

https://developers.facebook.com/blog/post/2015/04/28/april-30-migration/

Sample Code :

args = "SELECT uid,name FROM user WHERE uid = me()" file = urllib2.urlopen("https://api.facebook.com/method/fql.query?" + urllib.urlencode(args), timeout=3)

Please give some suggestion to fix this problem.

https://developers.facebook.com/docs/apps/api-v1-deprecation

Advance Thanks :)

Upvotes: 0

Views: 796

Answers (1)

Tobi
Tobi

Reputation: 31479

Have a look at

The FQL and REST APIs are no longer available in v2.1: Previously announced with v2.0, apps must migrate to versioned Graph API calls starting with v2.1.

You're querying the REST API which is deprecated, as cited. Use https://graph.facebook.com/fql instead.

Upvotes: 1

Related Questions