Reputation: 552
I'm trying to make an application that shares the content of my website automaticly whenever a post is posted. So I started with Graph Api Explorer. I got an access token of application Graph Api Explorer with manage_pages and publish_actions permissions.
When I use Graph Api Explorer it posts the message as page post which is I want it to be but when I use my own test application with the same permissions and query structure it posts it as fan post. Please help me what is wrong. Here is some screenshots that will help me to tell the problem:
and the result is:
Perfectly fine! But when I try to do it with my own application,
the settings are the same as above
and the result is:
By the way my application isn't approved becuase I didn't submit an approval. Is this the problem?
Upvotes: 0
Views: 89
Reputation: 48
No, application approval is not necessary. You just need to use access_token
of your page not of your profile.
$facebook->api("/PAGE_ID?fields=access_token");
Upvotes: 1