[Answer]-How to check user facebook likes/post in django

1๐Ÿ‘

โœ…

Iโ€™m the author of Django Facebook, this is how you could do it:

Implement a registration flow, have a look at the docs.
https://github.com/tschellenbach/Django-facebook

Now that your users can register the database will contain the access_token and facebook id for the users.
In your cronjob you can do things like:

from open_facebook.api import OpenFacebook
graph = OpenFacebook(access_token)
graph.get('%s/likes' % facebook_id)
graph.fql('SELECT ... FROM like WHERE post_id = A and user_id = B')

for a cronjob i would use
graph.batch_fql(dictionary_with_queries) for better performance

๐Ÿ‘คThierry

Leave a comment