There are some Facebook pages on which i want to post on behalf of Page Admin.I want something like this:
- Facebook page admin login using Facebook account and authenticates by clicking on button
- I captures all the rights(page_access_token and page_ID) to publish content in his facebook page
- Some user who comes to my site can publish his message on respective facebook page.
The problem is with First and Second point, I have made an Facebook App for authentication part, but how do i integrate it with Django. I am able to post on particular facebook page when i have page_access_token and page_ID using facebook-sdk .
Code below publish the feed on facebook page.
import facebook
oauth_access_token = "page_access_token"
graph = facebook.GraphAPI(oauth_access_token)
graph.put_object("me", "feed", message="Hello, world")
Its more of a Django App then Facebook app.Any help would be very much appreciated. Thanks