Posts under category Meta & Facebook

Hello! I'm trying to override the default link thumbnail in my post, but for this particular one, the request succeeds but the thumb shows up blank on site.
Here is the POST request body for the request I'm making to /{page-id}/feed, as per the Custom Link Page Post Image section in https://developers.facebook.com/docs/graph-api/reference/v20.0/page/feed#publish
{
"link": "https://www.huffpost.com/entry/weirdest-thing-seen-at-airport_l_66b3add9e4b05d0bc2808225",
"name": "People Are Revealing The Weirdest Things They've Ever Seen At The Airport",
"message": "What is it about the airport that brings out the bizarre in people?",
"picture": "https://img.buzzfeed.com/pubhub-api-prod-us-east-1/assets/6cff236dbba745b2893760bc74d7b64f/test.png",
"description": "What is it about the airport that brings out the bizarre in people?",
"is_published": true
}
Is there something about this particular image/post that would cause the thumb to show up blank like this?

Impression data for posts with media_product_type REELS has been unavailable since around September 9, 2024. Until then, it was working properly and no errors had occurred. Currently, impressions are no longer included in insights.data.
I would appreciate it if you could let me know the cause and how to fix it.
API Endpoint
GET /{ig-user-id}/media v18.0
https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media#-----2
Request Sample
{ig_user_id}/media?&fields=id,media_type,media_product_type,timestamp,like_count,comments_count,media_url,thumbnail_url,children{media_url},caption,permalink,insights.metric(impressions,reach,saved)&since=1719759600&until=1720105200
Response Sample
impressions is not included in insights.data .
{
"data": [
{
"id": "*****",
"media_type": "VIDEO",
"media_product_type": "REELS",
"timestamp": "2024-07-04T08:00:00+0000",
"like_count": 2091,
"comments_count": 30,
"media_url": "https://scontent-nrt1-1.cdninstagram.com/o1/v/t16/f1/***",
"thumbnail_url": "https://scontent-nrt1-1.cdninstagram.com/v/***",
"caption": "*****",
"permalink": "https://www.instagram.com/reel/*****/",
"insights": {
"data": [
{
"name": "reach",
"period": "lifetime",
"values": [
{
"value": 16903
}
],
"title": "Accounts reached",
"description": "The number of unique accounts that have seen this reel, at least once. Reach is different from impressions, which may include multiple views of your reel by the same accounts. This metric is estimated.",
"id": "*****/insights/reach/lifetime"
},
{
"name": "saved",
"period": "lifetime",
"values": [
{
"value": 82
}
],
"title": "Saved",
"description": "The number of saves of your reel.",
"id": "*****/insights/saved/lifetime"
}
]
}
}
],
"paging": {
"cursors": {
"before": "****",
"after": "*****"
},
"next": "https://graph.facebook.com/v18.0/{ig_user_id}/media?access_token=*****&fields=id%2Cmedia_type%2Cmedia_product_type%2Ctimestamp%2Clike_count%2Ccomments_count%2Cmedia_url%2Cthumbnail_url%2Cchildren%7Bmedia_url%7D%2Ccaption%2Cpermalink%2Cinsights.metric(impressions%2Creach%2Csaved)&pretty=0&since=1719759600&until=1720105200&after=****"
}
}

I implemented successfully the code to make a request to the Facebook GraphRequest by using the the following code:

GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() {   ... } 

In some documentation I found the code below to retrieve values:

Bundle parameters = new Bundle(); parameters.putString("fields","name,email"); request.setParameters(parameters); request.executeAsync(); 

I want to use System.out.println() to print out name and email of the person who logged in successfully with Facebook to my Android app. How can I invoke request to print out those values? Thank you.

UPDATE 1:

I suspect I might be experiencing the same problem reported at Facebook Integration Android: onCompleted(GraphJSONObjectCallback) block not executing: onCompleted(GraphJSONObjectCallback) block not executing

See more context of my code:

private void handleFacebookAccessToken(LoginResult loginResult) {   GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() {     @Override     public void onCompleted(@Nullable JSONObject jsonObject, @Nullable GraphResponse graphResponse) {       //Access the response here and retrieve the information you want and print it out       String rawResponse = graphResponse.getRawResponse();       System.out.println("rawResponse: "+rawResponse);     });     Bundle parameters = new Bundle();     parameters.putString("fields","name,email");     request.setParameters(parameters);     request.executeAsync(); } 

I was expecting the following line to print out the response to the request, but I do not see anything printed out:

System.out.println("rawResponse: "+rawResponse); 

I've tried getting
graph.facebook.com/v20.0/1*************3_7*************1/comments, where
1*************3 is a valid user id, and
7*************1 is a valid (and public) post id.

Unfortunately, the Graph API Explorer shows an OAuthException:

{   "error": {     "message": "Unsupported get request. Object with ID '1*************3_7*************1' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",     "type": "GraphMethodException",     "code": 100,     "error_subcode": 33,     "fbtrace_id": "A*********************Z"   } } 

How could I get all the comments of a user's public Facebook post?

I'd prefer a Graph API (or other official Meta tool) solution.

But I'm open to other approaches too.