Getting the Access Token:
- Go to link developers.facebook.com, create an account there.
- Go to link developers.facebook.com/tools/explorer.
- Go to “My apps” drop down in the top right corner and select “add a new app”.
- Again get back to the same link developers.facebook.com/tools/explorer.
- Then, select “Get Token”.
To get the user email, you have to log in the user with his Facebook account using the email permission. Use for that the Facebook PHP SDK (see on github) as following. When he is logged in the email can be found in the $user_profile array. Hope that helps !
In the newest version of the Graph API (v2. 9), we're announcing features that simplify development, making it even easier to build apps and experiences with Facebook. We're providing free access to over 140 million places around the world, the same data that powers Facebook, Instagram, and Messenger.
To find your Page ID:
- From News Feed, click Pages in the left side menu.
- Click your Page name to go to your Page.
- Click About in the left column. If you don't see About in the left column, click See More.
- Scroll down to find your Page ID below More Info.
The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.
To find the Page post ID in Ads Manager:
- Go to Page Posts.
- Select Ads Posts.
- Find your post and check the ID column to find the Page post ID.
You can
access Graph Explorer at:
graph/
graph-explorer .
Graph Explorer
- Select the HTTP method.
- Select the version of API that you want to use.
- Type the query in the request text box.
- Select Run Query.
HOW DO I FIND MY FACEBOOK USER ID AND USERNAME? To find Facebook ID and username you most go to the left menu on Facebook home page, in general setting, username. To find the ID for specific websites or games go to setting, app and website and scroll down to find the ID of that specific app.
Here's how:
- Go to Facebook.com/settings.
- Tap “Download a copy of your Facebook data.”
- Tap “Download Archive.”
- It might take a few minutes, but Facebook will alert you when your archive is ready.
- When it is, click “Download Archive” again, and a zip file will download to your computer.
One such way of mining personal data is to scrape social media sites, such as Facebook. Scraping users' profile pages can give basic information about them, who they're friends with, and what photos they've posted. Facebook realise the potential harm to user privacy from allowing anyone to scrape profiles.
A username is a name that uniquely identifies someone on a computer system. For example, a computer may be setup with multiple accounts, with different usernames for each account. For example, to access your e-mail via the Web, you are required to enter your username and password.
To log into your Facebook account on a computer: Go to facebook.com. Username: You can also log in with your username, if you set one up.