i wann to link my crm that made in Laravel with Favcbook leads to get leads form fb , atuomaticly

Job ID: 31767424

Budget: $10 – $30 USD

i have a crm and i want to link with Fb , this is all the steps
1. Get User Short-Lived Access Token
1. Go to the Graph API Explorer.
2. Select the application `Damac Lead Gen` to get the access token.

3. Click "Get Access Token".

4. In the pop-up, under the "Extended Permissions" tab, check "ads_management, ads_read, manage_pages, business_management, public_profile".

5. Click "Get Access Token".

6. Grant access from a Facebook account that has access to manage the target page and has the advertiser access for your business account. Note that if this user loses access the final, never-expiring access token will likely stop working. It's recommended to generate token from the user who has the business manager's prime access.
Token that appears in the "Access Token" field is your short-lived access token.

2. Generate Long-Lived Access Token
Following these instructions from the Facebook docs, make a GET request to
https://graph.facebook.com/v2.2/oauth/access_token?grant_type=fb_exchange_token&client_id={app_id}&client_secret={app_secret}&fb_exchange_token={short_lived_token}
entering in your app's ID and secret and the short-lived token generated in the previous step.

Since it's a GET request, you can just go to the URL in your browser.

The response should look like this:

access_token=ABC123&expires=5182959
"ABC123" will be your long-lived access token. You can put it into the Access Token Debugger to verify. Under "Expires" it should have something like "2 months".
4. Get User ID
Using the long-lived access token, make a GET request to

https://graph.facebook.com/v2.2/me?access_token={long_lived_access_token}
The id field is your account ID. You'll need it for the next step.
5. Get Permanent Page Access Token
Make a GET request to

https://graph.facebook.com/v2.2/{account_id}/accounts?access_token={long_lived_access_token}
The JSON response should have a data field under which is an array of items the user has access to. Find the item for the page you want the permanent access token from. The access_token field should have your permanent access token. Copy it and test it in the Access Token Debugger. Under "Expires" it should say "Never".
6. Replacing the token
The `index.php` has a constant defined for the access token, replace the constants value with the new token generated.