facebook API explain, example, and real project, tutorial

This is tutorial for pull the new feed from group that you are a member (no matter what it is closed or public) or pull the new feed from your account

This tutorial use version 2.3 because from 2.4 facebook not allow to pull the newfeed of user, and feed of group either.

First get the permission to access

screenshot-from-2017-02-01-12-23-34

click on Get Accses Token

Then search for group id

2

we can use search command or v2.3/me/groups

to see all groups that you are member or admin

then you can have the group id. Imagine that id is name of that particular group or any object on facebook.

 

3

Then we can pull the feed from that group by

4

 

similarly, we can pull the user new feed by

v2.3/me/feeds

NOTE:

  1. Remember to switch to v2.3
  2. Check on read_stream on get token access. Note that only when we switch to v2.3, we see the read-stream option
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s