tschellenbach / Django-facebook

Facebook open graph api implementation using the Django web framework in python
http://www.mellowmorning.com/
Other
1.43k stars 544 forks source link

Facebook Graph-API versioning not supported #477

Open gidantribal opened 10 years ago

gidantribal commented 10 years ago

Hello, when I try to use v2.1 of Facebook Graph-API I run in troubles as I can't specify the versioning in the URL. Some fields are available starting from a specific version, so I keep getting the following error:

{
   "error": {
      "message": "(#12) attending_count requires version v2.1 or higher",
      "type": "OAuthException",
      "code": 12
   }
}

In my case, the right URL https://graph.facebook.com/v2.1/?.... should be used instead. I guess there is need of adding version number management.

gidantribal commented 10 years ago

Please have a look at my workaround (works flawlessly/tested on multi_get):

https://github.com/gidantribal/Django-facebook/commit/b2e43d07a5d37fb3572ae36f4799c701a075b4a8