• Resolved zinnsoldat08468

    (@zinnsoldat08468)


    Hello,

    i have Problem with Plugin. All Field in Backend are Green. In “Page or profile ID” i see “Grant access rights!” I click this Button but error too.

    I cant post publish Posts ??

    Please help me.

Viewing 15 replies - 1 through 15 (of 32 total)
  • Plugin Author mtschirs

    (@mtschirs)

    Hallo Zinnsoldat,

    I am always looking forward to make the plugin more robust, so thank you for reporting this bug.

    It would be of great help if you could post the whole error message. I also would like to know wether you entered a page ID or a profile ID. If it is a page ID: are you admin of the page?

    Are you redirected to facebook when clicking the “grant access rights”-button?

    Hello,

    Same error…

    I was redirected to facebook…

    Here is the complete error :

    Facebook returned an unexpected error. Try to resolve this issue, update the plugin or inform the author about the problem.

    Your page or profile’s access permissions could not be granted.

    Merci beaucoup ??

    profil ID and I’m admin of my page ??

    Plugin Author mtschirs

    (@mtschirs)

    Hi Misterjoecity,
    this should only be a minor bug. If you want to help me code a fix, you can do the following:

    First method:

    1. Click “Editor” in the “Plugins” menu and open facebook-page-publish/fpp_index.php
    2. Search for the line if ($json_response != null) {
    3. Add print_r('Response: "'.$json_response.'"'); directly before the aforementioned line

    Your code there should now look like this:

    $json_response = json_decode($response['body']);
    print_r('Response: "'.$json_response.'"');
    if ($json_response != null) {

    Now click again the “Grant access rights!” button and authorize your application to access your facebook profile. After being redirected to your blog again, a new line “Response: “…”” should be shown – copy this and post it here.

    Second method:
    If you don’t have the time to experiment, simply delete the line else throw new FacebookUnexpectedErrorException(); in facebook-page-publish/fpp_index.php and report wether this resolves the problem or not.

    Merci d’avance ??

    Here is :

    Parse error: syntax error, unexpected T_IF, expecting T_STRING or T_VARIABLE or ‘$’ in …/wp-content/plugins/facebook-page-publish/fpp_index.php on line 495

    Plugin Author mtschirs

    (@mtschirs)

    Ops, it seems there is now an error in your code.

    Please replace the content of your fpp_index.php with this: https://pastebin.com/P94XwT81

    Then try to grant permissions and you should see the “Response…” line.

    Sorry ??

    Gloups ! there is a problem… the line by mail is ‘wrong’

    Here is :

    Response: "access_token=211776905501837|4b1e92c986f5498e6b5f1977-584089319|Dufh2JTG_eb0bxqeNLXtPV7X7z0"

    Plugin Author mtschirs

    (@mtschirs)

    Well, this is a good result. Actually, this is your access token the plugin needs, but it reports an error by mistake.

    To finally solve this, could you follow the steps I described above in Second method? Oh, and by the way: wich PHP version do you use?

    I have now “Access granted” but I didn’t checked permission with facebook, I tried to renew, and nothing.

    My counters is always 0 :

    Monthly Active Users
    0

    People Who Like This
    0

    Total Users
    0

    PHP Version 5.2.6-1+lenny10

    Plugin Author mtschirs

    (@mtschirs)

    Your counter will remain 0, that is ok. This counter counts the users who are using your facebook application besides yourself.

    It is also ok that you don’t have to press the authorize button on facebook again, since you already did that and Facebook stored the result.

    As long as you don’t see any red error boxes, the plugin should work. Did you publish a test post?

    No I do not. I will try now

    Your Facebook Page Publish plugin reports an error. Please check your plugin settings.

    Facebook is not reachable from your server: connect() timed out!
    Check your connection!

    Plugin Author mtschirs

    (@mtschirs)

    Wow, sorry, you seem to collect all the errors the other users missed ??

    Please run https://YOUR_BLOG.XY/wp-content/plugins/facebook-page-publish/diagnosis.php and post the result.

    Does your server allow outgoing http / https connections (can you update your wordpress through the admin panel)?

    Yes… yes… ??

    Everything looks fine

    Array
    (
    [headers] => Array
    (
    [cache-control] => private, no-cache, no-store, must-revalidate
    [content-type] => text/javascript; charset=UTF-8
    [etag] => “44a40d42c6e70a3bc69630bc13c9245be03b2f27”
    [expires] => Sat, 01 Jan 2000 00:00:00 GMT
    [p3p] => CP=”Facebook does not have a P3P policy. Learn why here: https://fb.me/p3p”
    [pragma] => no-cache
    [x-fb-rev] => 363131
    [set-cookie] => datr=I02eTWHYhrJyVJJwnYabNZXl; expires=Sat, 06-Apr-2013 23:47:47 GMT; path=/; domain=.facebook.com; httponly
    [x-fb-server] => 10.42.15.43
    [connection] => close
    [content-length] => 478
    )

    [body] => {“id”:”19292868552″,”name”:”Facebook Platform”,”picture”:”http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/211160_19292868552_1855422_s.jpg”,”link”:”http:\/\/www.facebook.com\/platform”,”category”:”Product\/service”,”likes”:1708099,”website”:”http:\/\/developers.facebook.com”,”username”:”platform”,”founded”:”May 2007″,”company_overview”:”Facebook Platform enables anyone to build social applications on Facebook and the web.”,”mission”:”To make the web more open and social.”}
    [response] => Array
    (
    [code] => 200
    [message] => OK
    )

    [cookies] => Array
    (
    [0] => WP_Http_Cookie Object
    (
    [name] => datr
    [value] => I02eTWHYhrJyVJJwnYabNZXl
    [expires] => 1365292067
    [path] => /
    [domain] => .facebook.com
    [httponly] =>
    )

    )

    )

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘[Plugin: Facebook Page Publish] Your page or profile's access permissions could not be granted.’ is closed to new replies.