Posts tagged with facebook-graph-api

I'm trying to use the Graph API to fetch data from other people and pages, but it only fetches my data and the pages I'm an admin of. Is it possible to do this, or has Facebook implemented restrictions ?

I’ve tested different API requests with various permissions and tokens, but the result is the same—I can only access my data and data from pages I manage. I've watched several YouTube videos that demonstrate using the Graph API to fetch data from different sources, but many of these tutorials are a bit outdated. They suggest methods that no longer seem to work.

I'm using Graph API Explorer to display our Facebook Page posts. The feed is producing everything I want but a couple of the posts are shared to our page.

The shared posts show the photos as an album but doesn't show any of the text, (message). I'm assuming this may be due to permissions as it's a different page.

However I cannot find a way to identify in the feed whether a post is ours or one we have shared to our page.

Is there anyway of getting the text from the original page or at least identifying whether the post is one that s shared or not.

My graph call is quite lengthy at the moment until I establish what's needed.

me?fields=id,name,feed.limit(10){created_time,full_picture,id,message,message_tags,place,attachments.limit(100){description,description_tags,media,media_type,title,type,subattachments,target,unshimmed_url,url},status_type,via,sharedposts{description,from,message},to{name}},link,posts 

EDIT:- I'm still struggling for a solution.

I have a Python application that uses a Facebook Business library. Therefore, I need to use a token provided by Facebook to access my insights and manipulate them.

However, this token has an expiration date, which is long, but I wanted to know if there is a way to update this token automatically within my application, so that it doesn't stop running.

I haven't found any examples for using FacebookClient to upload photos to a Facebook page in C#. I tried using the JavaScript SDK, but it exposes a lot of functionality I don't need. I'm implementing the upload functionality with FacebookClient in my custom Facebook service.

I'm encountering issues, and the photo needs to be under 4 MB and in JPG, PNG, GIF, TIFF, or HEIF format. Can anyone provide guidance or examples for this specific scenario?