WordPress.org

Ready to get started?Download WordPress

Forums

SFCe - Graph API Create Event
No access token (14 posts)

  1. methodc
    Member
    Posted 2 years ago #

    First of all, thanks for updating this plugin! Too bad i cant get it to work quite yet. On the settings page of your plugin (Tools>Create Facebook Events) i keep getting "No access token, try re-saving this page." marked in red.

    Als a couple of "Warning: func_get_arg(): Argument 0 not passed to function in ..../functions.php".

    In Otto's SFC plugin als my access tokens are marked green, including my page. Am i doing something wrong here ?

    At the moment i can create posts and i see the option panel where to fill in facebook events details. But the event is not created on facebook.

    http://wordpress.org/extend/plugins/sfce-create-event/

  2. methodc
    Member
    Posted 2 years ago #

    When i re-save the settings page it gives me the message on the top of the page :

    Problem getting create event access token: ArrayURL: <it gives me the URL here>

    But when i go to this link manually, it gives me the access token. So thats kind of weird.

  3. roggie
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the feedback, and my apologies for the problem. I'll take a look at the code and get back to you.

  4. roggie
    Member
    Plugin Author

    Posted 2 years ago #

    I'm sorry but I cannot reproduce the problem, when I start with a clean system things work properly.

    A couple of things for you to check:

    Have you loaded the auto-publish option and granted all Publish permissions in Otto's SFC plugin? If not please do and re-try.

    If SFC Publish is loaded and working, please go into Facebook - Privacy Setting - Apps and websites -- and revoke all permissions for your WordPress blog's app. Then go back to Otto's SFC and grant permissions there again, then go to SFCe and grant permissions there again.

  5. methodc
    Member
    Posted 2 years ago #

    Thanks for your reply roggie. I already tried these steps and now i tried them again. I keep gettings this error on SFCe settings page after 2nd save :

    Problem getting create event access token: ArrayURL: https://graph.facebook.com/oauth/access_token?client_id= ...............

    but as i said, navigating to this URL manually gives me the access token. So is it a possibility that the problem does not lie within SFC or SFCe, but maybe the server im running it on has a problem with the https:// url ?

    On my privacy settings page the app has all the right settings. Also the event creation ability after saving (again) from within SFCe.

  6. roggie
    Member
    Plugin Author

    Posted 2 years ago #

    Mmmm, it is strange, if only because SFCe doesn't actually use its own access token - it uses the same one as SFC.

    However, SFCe needs to get permission from facebook to create events, which is the main purpose of the permissions code on the settings page. (I was testing getting an SFCe specific access token to automatically invite people to events, but that feature is very much in beta at the moment)

    Anyhow, it would be fairly easy for me to add a text box that you could use to store an access token - a sort of SFCe access token override. So I'll get that done in a day or two and issue an update. It'll be interesting to see if your access token owuld work (or be any different) to the SFC one.

  7. methodc
    Member
    Posted 2 years ago #

    Hey Roggie,

    Any progress on the new version with the access token field? I would be very interested in testing out if it would make any difference !

  8. roggie
    Member
    Plugin Author

    Posted 2 years ago #

    Hi - I've uploaded a test version to the branches directory - its numbered 4.00.3 and includes a text 'access token override' box on the setting page that you ca use to enter an access token. If you put something in that text box SFCe will use that instead of any other access token.

    So you need a User access token to do user related stuff - eg create a User event, and you need a Page access token to do page stuff - eg create a Page event, so use the override box with caution.

    This version also saves the result from facebook in a custom field called fb_event_id. If successful it should have the event id, if not, it should have other interesting info.

    You can download this version by clickng on Subversion Repository on the right of he wordpress.org plugin page, then click on branches...

    Please let me know how it works out.

  9. methodc
    Member
    Posted 2 years ago #

    Now i get kind of the same errors as on the SFCe settings page when trying to create an event:

    Warning: func_get_arg(): Argument 0 not passed to function in oja-aarle.nl\httpdocs\wp-includes\functions.php on line 1435

    Warning: func_get_arg(): Argument 0 not passed to function in D:\inetpub\vhosts\oja-aarle.nl\httpdocs\wp-includes\functions.php on line 1478

    Warning: func_get_arg(): Argument 0 not passed to function in D:\inetpub\vhosts\oja-aarle.nl\httpdocs\wp-includes\functions.php on line 1482

    Warning: func_get_arg(): Argument 1 not passed to function in oja-aarle.nl\httpdocs\wp-includes\functions.php on line 1482

    Warning: func_get_arg(): Argument 0 not passed to function in oja-aarle.nl\httpdocs\wp-includes\functions.php on line 1435

    Warning: func_get_arg(): Argument 0 not passed to function in oja-aarle.nl\httpdocs\wp-includes\functions.php on line 1478

    Warning: func_get_arg(): Argument 0 not passed to function in oja-aarle.nl\httpdocs\wp-includes\functions.php on line 1482

    Warning: func_get_arg(): Argument 1 not passed to function in oja-aarle.nl\httpdocs\wp-includes\functions.php on line 1482

    I manually put my access token in there. And i did give the app the permission to create an event.

  10. roggie
    Member
    Plugin Author

    Posted 2 years ago #

    Well that's very strange - the error refers to your WordPress functions.php file, and in mine, those line numbers are part of "function add_query_arg()"

    Given that the code works for me, and no other users have reported this issue, I'd suggest:
    1)make sure you don't have any old SFCe directories on your plugins folder, if so, please move them (I know this sounds pointless but hey)
    2) disable all your plugins except SFC and SFCe

    If the above doesn't fix things try a different WP installation, it looks like your running on Windows, so maybe try WordPress on a Linux VM?

  11. methodc
    Member
    Posted 2 years ago #

    Indeed strange. After trying everything twice i have to agree with you that its probably not working due to the fact its running on a windows machine. I will try and move this install to a Linux environment as soon as possible. Thanks for all your help and keep up the good work!

  12. methodc
    Member
    Posted 2 years ago #

    Well good news roggie ! I moved my site to a unix environment. Very good move, everything is working smoother than ever before.

    But your plug-in is even working a little too good! Every time i create a public event, it creates the event 2 times on facebook. Any ideas what could be causing this ?

    Cheers !

  13. Beach Carolina Magazine
    Member
    Posted 2 years ago #

    I am having the exact same problem getting:

    Warning: func_get_arg(): Argument 0 not passed to function in /home/beachcar/public_html/wp-includes/functions.php on line 1435

    Warning: func_get_arg(): Argument 1 not passed to function in /home/beachcar/public_html/wp-includes/functions.php on line 1482

    on the SFCe Create Facebook Event Configuration page.

    OS: linux
    MySQL: 5.0.95
    PHP: 5.2.5
    Curl: 7.15.5

  14. tyurinp
    Member
    Posted 2 years ago #

    Same problem this Create Facebook Event and permanent OAuth error
    Publish on Facebook with Simple Facebook Connect working fine
    Please help

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic