Is there a way to update custom audience in facebook adset via Java SDK provided by meta - facebook-graph-api

I want to update/add a custom audience to already ACTIVE facebook ad campaign. Custom Audience is part of the Adset. I am not able to find the field in Adset which corresponds to custom audience. Also it's possible to do this in Ads manager, is it possible via graph api's that meta provides or java SDK?
I tired going through facebook documentation here (scroll down to Adset heading) couldn't find the field. Also i have all my campaigns/adsets/ads in draft mode so i can't play with graph apis(facebook doesn't return data in apis for status=draft)

Related

Getting the private instagram users followers count via API

This isn't a new question. But the old topics ended in 2016 and I guess there must be a new solution to get the public meta data like profile pictures and follower data of a private instagram account.
The new api has the endpoint: https://developers.facebook.com/docs/instagram-basic-display-api/reference/user but this is only working with the correct userid - how to get this by username?
The old endpoints aren't working anymore and I am thinking about how to cerate a service like: https://www.instafollowers.co/instagram-follower-count with an APP-Token by the graph api or is there another solution to get anybodys instagram information (private and business and creators) account.
Hope for answers. :)
Consider to use thee business discovery API in Instagram Graph API.
Basically just create a facebook page and connect to an instagram business/creator account.
Then you are able to get the other users details by their ig username.
Visit https://developers.facebook.com/docs/instagram-api/reference/user/business_discovery for more details.

Is it possible to get the Instagram profile picture and other basic details?

I'm trying to get the details of the user using the access_token from the Instagram APIs, Instagram Basic Display API and Instagram Graph API. What I found is the details are bit messy and by going deep into it I'm not able to conclude the final result as I want.
What I got to know during the implementation is that Instagram has stopped the public APIs. does that mean apart from getting auth-token then had stopped everything?.
I have even tried the Instagram Basic Display API which is only giving the access of 4 fields account_type, id, media_count, username. Is it possible to get any other field from the same API?
If so How do I get the profile picture of the user and other basic details of the Instagram user?
any help will be appreciated
Currently, the API endpoint for retrieving a user's profile information only allows for the retrieval of the 4 fields you listed above. This is, up to now, all that has been made available for retrieval through the me endpoint of the Instagram Basic Display API for getting a User node.
Until the API developers further extend the API's endpoints and capabilities, you won't be able to use this API programmatically to get a user's profile image.

Search Instagram user by name through API

I'm trying to implement a search field on my webpage so you can search for publicly accessible Instagram profiles by name. The (now legacy) Instagram API had the endpoint https://api.instagram.com/v1/users/search for this but since April it has been deprecated (https://www.instagram.com/developer/changelog/#april-4-2018) an it is not accessible anymore (I tried myself).
I have been checking out the newly released Instagram Graph API (https://developers.facebook.com/docs/instagram-api) but it is focused on Instagram business accounts and in any case, I haven't been able to find the relevant endpoint.
Does this mean that this functionality is not available anymore or did I miss something?

How to get all the posts that a page is tagged in using Graph API

Since FQL is deprecated from 2.1 onwards.Is there any way to get all the posts that a page is tagged in using Graph API.
tried {page_id}/tagged but it shows only the page's posts not the posts that a page was tagged.
I want to query the posts using graph API by a user on their own wall that tags the page.is there any way to do that?
isn't this a functionality of the Public Feed API which Accessing it is restricted to a limited set of media publishers and usage requires prior approval by Facebook. Applications to the API are not open at this time.

Adding App-Scoped IDs to an audience

I'me using the facebook php sdk to create an audience (works great) and then add app-scoped ids to that audience (appears to work but isn't working). I can send a hundred app-scoped ids to the sdk and get no errors back, but when I go to the facebook dashboard it says the audience is too small.
Is there a way to add users who've liked a post to an audience via their app-scoped ids? We can already get the list of users who've liked a post (this is the source of the app-scoped ids). Or can you only use app-scoped ids with a custom audience if those users have given permission to Facebook somehow?
(I find it frustrating to not know why a user is rejected from an audience.)