bastianvdb
Member
Posted 1 year ago #
A good day to all.
I'm experiencing problems when linking the plugin to my facebook app and page.
I succesfully granted permissions to the plugin and my app id and secret are also succesfully validated.
The problem is that I still get this annoying error:
Some or all access permissions are missing. Please click the button Grant access rights! and authorize the plugin to post to your Facebook profile or page.
[Error occured at line 774]
Your page or profile's access permissions could not be verified.
Does anyone have a solution?
http://wordpress.org/extend/plugins/facebook-page-publish/
bradclarkuk
Member
Posted 1 year ago #
I am having the same issue - can anyone out there help?
Brad
caterinaellen
Member
Posted 1 year ago #
Hey,
I'm also having the same issue - clicking grant access rights! Does nothing...
I'm having issues with this too! Please someone, help!
TheHighPlainsDrifter
Member
Posted 1 year ago #
GeekOramaFrance
Member
Posted 1 year ago #
Same problem. Here. If anyone finds a solution please let us know.
Ungkarskokken
Member
Posted 1 year ago #
mrstawneeb
Member
Posted 1 year ago #
I am also recieving this error, any ideas?
(bump)
(notify)
edit:
it seems when i use Facebook as (the Page) as in "instead of my user profile" then upon clicking Grant Access, the wordpress admin page reloads and it's facebook asking me to switch profile, upon switching profile (click on the button) i'm redirected to the worpdress page admin page and the same error is displayed
* in my settings i also disabled all the new log-in security features device etc. but it didn't go through any better…
** wordpress is 3.3.1 and Facebook Page Publish is version 0.3.9
(thank you)
Same problem for me too. Tried jrgd's 'trick' looked like it was doing something then back to WP homepage with the error.
Facebook ID, Secret and Page or Profile ID all green in the admin section.
Also seeing this. I assume since none of the facebook page screenshots in the help for configuring this plugin actually look like that anymore that the facebook API has also changed too.
-p
Rodilard
Member
Posted 1 year ago #
Hi Everyone, I finally got this working. The problem comes from this:
https://developers.facebook.com/docs/offline-access-deprecation/
In wp-content/plugins/facebook-page-publish/fpp_index.php
On line 663
Change
$permissions = array('offline_access', 'share_item');
to
$permissions = array('share_item');
Then on line 594, change
preg_match('/^.+=\s*(.+)/', $access_token_url, $matches);
to
preg_match('/access_token=(.*)&expires/', $access_token_url, $matches);
Hope this helps.
nvillegas
Member
Posted 1 year ago #
Great! Thank you very much Rodilard!
Great - this worked. In my installation the line
$permissions = array('offline_access', 'share_item');
is actually on line 1325
and
preg_match('/^.+=\s*(.+)/', $access_token_url, $matches);
was on line 1187
although these were the only instances of these two bits of code and changing them as outlined above got this working.
mrstawneeb
Member
Posted 1 year ago #
Thanks Rodilard, I will try it tonight!
GeekOramaFrance
Member
Posted 1 year ago #
Thank you, it's working perfectly now!
lephoenixmagazine
Member
Posted 1 year ago #
Sunganani
Member
Posted 1 year ago #
Thank you sooooo much. My php knowledge is way behind what you shared here.
Blessing to you Rodilard.
learnitology
Member
Posted 1 year ago #
Thanks! This was easily updated using find and replace in WP > Plugins > Edit
Thank you so much! It worked!
pandammonium
Member
Posted 1 year ago #
Thanks for taking the time to find the fix and to share it, Rodilard. Works a treat, now.
I hope the developer fixes this in the next update.
BibliothequeFARES
Member
Posted 1 year ago #
danielgc
Member
Posted 1 year ago #
A big thank you to the developer and Rodilard ;) It works!
dmtaylor247
Member
Posted 1 year ago #
robbie22
Member
Posted 1 year ago #
Hi Rodilard,
Contrary to what everyone has said here, I have made exactly the changes to the lines you suggested and been back and double checked the code and still getting the same error messages regarding line 774.
Must be something else I'm doing wrong because obviously it works for everyone else. Is there anything else I can try.
Thanks
seocadiz
Member
Posted 1 year ago #
Solved with @Rodilard fix.
This should be included in the next plugin's update
Thanks Rodilard! It works like a charm!