How can I get all ads posts from Instagram and Facebook?
Facebook Library ads allow to get only POLITICAL_AND_ISSUE_ADS.
Facebook graph api doesn`t allow to get creatives from other accounts.
May there be another ways? Or can I get some permission for it?
Related
What I'm trying to achieve:
Fetch images from my own Instagram business account to display on a website using the Instagram graph api v3.3 by not obtaining a user access token from a client side Facebook SDK login modal because users just shouldn't be doing that to see a simple Instagram feed.
I have the permissions manage_pages and instagram_basic granted(gone through app review). I'm using app_id and app_secret as user access_token parameter value(which may not be the access token Instagram graph api is looking for) as when I tried to fetch any data there is an error message:
" #10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.'" However, I don't need the permission Page Public Content Access because I'm fetching images from my own account. This is also confirmed by the Facebook App Review support.
The query that is used to get the images is as follows:
https://graph.facebook.com/${pageId}?fields=id&access_token=${accessToken}
My access token in this case is app_id|app_secret since I can't access the user access token.
The developer api guide "https://developers.facebook.com/docs/instagram-api/getting-started/" only shows a way to get user access token using the client side Facebook SDK login button which generates a user access token after a visiting user interacts with a modal that pops up to have them login. But again, a simple Instagram image gallery shouldn't require every user that visit the site to log in to their own Facebook account.
I have bugged the App Review support team at Facebook with no real answer. I couldn't join the Facebook developers support group as no one is approving my request to join and I've also tried my best to seek help from the facebook developers support team but I can't reach them. So I'm turning to Stack Overflow to ask if there is any way to display images from an Instagram Business Account without sticking a Facebook login SDK modal on the site.
Thanks so much.
EDIT: After reading #misorude's comment, I'm thinking would adding the Facebook login modal on the website and querying it by logging into my own Facebook account and then capturing my own user access token that is returned by the api and then use that access token for every susequent api calls to fetch images work?
I know it's probably a common question but i couldn't find a solution for my specific case. We have created a Facebook App on our Business Facebook account and the client has given us page moderator permission on his page. Using this we have been able to generate a Never expiring page token and download the posts from the clients page. We would like to do the same for the clients Instagram posts.
After reading the GraphAPI docs i have concluded that we need "instagram_basic" permissions from the client but when i choose page in the Graph API Explorer and try adding "instagram_basic" permission the whole API Explorer disappears.
We do not have the Instagram Business account but the client has. His posts are all public and we need only his posts. I'm confused by the docs what tokens can we use. Page token seemed appropriate for Facebook but not for Instagram. This is all downloaded server side and mashed together with the clients other blog posts and similar feeds. There is no App involved so no Facebook, IG login.
I was trying to access the details(likes and comments) of the photos which are posted to facebook from instagram app.
I coulnd't find any way to get that.
how can i confirm that a photo is posted from instagram?
Did you try the facebook endpoint /me/instapp:take ?
I can at least get my photos... don't know about public pictures...
Now I am able to get my instagram photos and others as well but the thing is we can't access anybody's instagram photo details for that we need to have access token of that user.
the fan page 335667609918222 count is 2 but when i tried to access the below url https://graph.facebook.com/335667609918222/likes?access_token=CAAG4yxdE1UsBAFu8L0ZCdlFWWeJy2hCOnYtr9ZB42LvbqlqsPs1PAwHfZB3RIMVGXFcmwDMR6xVTvCjU1Pp3ler6FG17SGzY6lW5frZBaaJaUsfksHNnC3jvl9sjNgaTXi22C9VQsw95VdRWHluLdfy5fai0ij0yBNMmp64dObycqumuCBeO3O0JQj8q8STBRS9JZA2wTVQZDZD I am always getting the empty data.
Please help me out
The Facebook Graph API doesn't support that.
You can only query: "Does this user like Facebook Page X?", not "Give me a list of all users that Like Facebook Page X".
Also, your access_token is in the URL, you should probably keep that private.
I'm trying to find out if a Facebook User is able to view the insights of a certain Facebook page. I know that this is possible using the Open Graph API with an access token that has the "manage_pages" permission. Is this the only possible solution? I don't want to request the "manage_pages" permission just to find out if this certain user can view the insights. My app only requests the "view_insights" permission and I'd like to keep it that way.
If its a specific page then you can get <PAGE_ID>/insights with the Graph API, all it requires is read_insights permission.
For getting list of pages a user administrating using either Graph API (<USER_ID>/accounts) or FQL (SELECT page_id FROM page_admin WHERE uid=<USER_ID>) you'll have to request the manage_pages permissions