Facebook Marketing API: Is User in Audience? - facebook

Is there a way using the Facebook Marketing API (or GraphAPI) to verify that a given Facebook user (FBID given) is in an audience?

No, there is no way to know that someone is in an audience as this would expose information about that person.
However, you can create a Custom Audience using app scoped user IDs, and in this way you would have high certainty that the person is in the given audience.

Related

Instagram Graph API getting users geolocation without login and access token

I know that you want to suggest me private api or any scraper. I used them but they don`t return accounts geolocation. In my application I want to get instagram accounts geolocation, likes, comments, followers and follows in order to get engagement of account.
If you say it is not possible look TrendHero website it returns all information about users, followers rank, country information and other handy information which you can find in your insights (in instagram account) without users permissions.
My first impression, without caring to dive deep into the company you linked, is they are simply using scrapers. That's typically how those big contact databases are done.
The Instagram APIs simply don't provide the access they used to. That's how it is. Simply asserting there must be a way doesn't mean there actually is.
#WizKid Instagram can't actually prevent scraping. They just make a little fuss about it.

Facebook Marketing API Custom Audiences - Where/How do I collect EXTERN_ID value?

I have an existing Facebook Marketing API Custom Audience integration where I push contact information for matching and it is working appropriately.
I would like to be able to target facebook users via offline website traffic segments, using the Custom Audience EXTERN_ID field.
I have yet to find a place that explains where/how to collect/set the EXTERN_ID when someone visits my site, so that I can target them later. Can I pass EXTERN_ID in the Facebook Pixel call?

How app_scoped_ids will be used on custom audience after May 1st?

On custom audience, there is the possibility to upload a Facebook ID list for creating an audience... After the Graph API v2.0 migration, when we won't have access to Facebook ID anymore, how can i upload the user id list? Can i use a app_scoped_id based list?
If someone publishes something on my fanpage, and i get his post using Graph API, will i be able to use his id on custom audience? The official documentation don't make itself clear when explaining about the "expiring process" of a app_scoped_id. As far as i understood, when someone authorizes an application, his app_scoped_id will be "permanent", but if there is no user interaction/authorization with my application, the app_scoped_id CAN expire in 24 hours... is that right? If so, how can i use a list of ids on custom audience if they expires?
Thank you!
UPDATE
From https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids:
For users who have not logged into your app, the user ID may change depending on the version of the API that you call. In v1.0 of the API users who have not logged into your app will be referred to by their original Facebook user ID, whereas in v2.0 they will be referred to by an app-scoped ID.
We've added new API endpoints that allow you to tag and invite friends who don't use your app. These APIs return tokens which may be used to generate custom interfaces for tagging and invitations. Those tokens aren't meant to be cachable and we make no guarantees that they will be stable beyond 24 hours from the time the API response containing them was received. They aren't the same as either the IDs used on data for people not logged into your app nor the same as the app-scoped IDs.
You are confusing the app-scoped IDs with temporarily generated IDs. App-scoped IDs will not change over time. Temporarily generated IDs are meant to help with inviting and tagging friends who have not authorized an application and as such they will not remain the same over time.

Fetch users who has checked in at particular location or page from Facebook Graph API

I would like to fetch the users list from Facebook Graph API 2.0 who has checked in at particular place or a page. I tried to use this way:
https://developers.facebook.com/docs/graph-api/reference/v2.0/page
But it does not provide that information. Can this be a privacy issue?
Is there a way that if I am a page admin of the place, where people check in, I can fetch the user ids of those users?
Any kind of help or guidance will be very appreciated.
Regards
This is not possible IMHO, because the user's checkins are bound to the OAuth access restrictions, meaning that every user need to give your app the permission to request his data.
As you already refrences, the Page itself has no edge for the checkins: https://developers.facebook.com/docs/graph-api/reference/v2.0/page#edges

Where do I find my Facebook Audience ID?

I need to get the audience ID from the audiences I created in Power Editor but I can find no way to retrieve the Audience ID. I've read https://developers.facebook.com/docs/reference/ads-api/custom-audience-targeting/ but still it does not explain where to get these Audience IDs from.
I'm assuming your app has access to the Ads API; if not, you can't retrieve the Audience IDs via the API, but the IDs probably aren't useful unless you're creating ads via the API anyway
To retrieve audiences you've created in an account via power editor or the API, you can make an API call to https://graph.facebook.com/act_<ACCOUNT ID>/customaudiences which returns the audiences in the account
You'll need a user access token for an admin of the ad account, whcih has the ads_management extended permission
It's possible to get the audience IDs via web interface. Here are the steps:
select an ad set with the audience you need
press Export & Import button
choose Selected
Facebook will generate a .csv file. In this file, you'll find all ad set's parameters, including Included Custom Audiences and Excluded Custom Audiences with IDs.
Once you have a list of all the target audience profile URLs, you can get their Facebook ID numbers by going to www.findmyfacebookid.com
Or you can also find anybody’s ID by adding the word “graph” to their profile URL, like this http://graph.facebook.com/awesomename