Closed (outdated)
Project:
Social Feed
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2024 at 06:35 UTC
Updated:
9 Dec 2025 at 16:27 UTC
Jump to comment: Most recent
I'm trying to get Feeds from FB, but got errors.
After debugging I have found that issue is in part where permanent token should be fetched
// Permanent Token.
$request = $client->request('GET', $url . "/$account_id/accounts?access_token=$long_token");
$request = json_decode($request->getBody()->getContents());
foreach ($request->data as $response_data) {
if ($response_data->id == $page_id) {
$config->set('page_permanent_token', $response_data->access_token)->save();
return $response_data->access_token;
}
}
Response data is empty for this request.
I have found that permanent token can be fetched with request to https://graph.facebook.com/{graph_version}/{page_id}?fields=access_token&access_token={long_lived_token}
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sorlov commentedComment #4
hemangi.gokhale@sorlov, I believe this issue has already been resolved in 3.0.0-alpha1 and 4.0.0-alpha1. Please give these versions a try and let us know if you still encounter any issues. Thanks!