Facebook PHP SDK 3.0 - How to get my page wall posts at any time?

前端 未结 2 1431
生来不讨喜
生来不讨喜 2021-01-03 12:25

I have been trying to read the news feed from a page that I have using an app that I\'m coding.

Now I have had some issues trying to do this using the PHP SDK 3.0.

2条回答
  •  鱼传尺愫
    2021-01-03 13:02

    I know this is old, but I'll bring it up again! I just spent the last three days busting tail and trying to hack and crack the PHP SDK and Graph API, and I've done alright! I posted a full length lab with code and descriptions on my page, and you can view it below and ask me any questions you might have.

    Basically, page feed is in a "graph" of info, or a super array. You use the app to connect to the facebook page, and get the feed. Connecting to a page's feed requires no permission from the page, hence why all you need is your APP ID, APP SECRET, and PAGE ID. The SDK automatically generates the APP ACCESS TOKEN for you, so you'r good there.

    From then on, it's just about manipulating the graph. I've learned that Facebook feed has different types of posts. some are "photo", "message", "link". Anyways, check out the lab and tell me what you think.

    http://www.callmenick.com/labs/displaying-a-custom-facebook-page-feed

提交回复
热议问题