WordPress.org

Ready to get started?Download WordPress

Forums

SFCe - Graph API Create Event
[resolved] Can't get plugin to work (4 posts)

  1. silakka
    Member
    Posted 3 years ago #

    Questions:

    1. There's actually two plugins available after downloading this plugin. One with version number and one without. Should I activate both?

    2. If I don't tick "Create Public Facebook Event", plugin does nothing. And if I tick the box, it gives me a error "You must provide an access token on the SFCe Create Event Settings page." So where do I get access token?

    I'm using SFC plugin without any problems. I've linked my FB account to my WordPress account. I've tried to connect the plugins with new developer app and had no luck in posting new event to FB. And of course tried to activate an de-activate plugins.

    I'm doing something wrong but what. Any ideas?

  2. silakka
    Member
    Posted 3 years ago #

    Update:

    I did some more testing and noticed that if my settings for an event are:

    Use Fan Page? FALSE
    Privacy Setting? SECRET
    Create Public Facebook Event 'check'

    then event gets posted on FB events page while still giving "You must provide access token..." error. Obviously event is private and it shows up on my profile page.

    So problem lies in this access token...

  3. roggie
    Member
    Plugin Author

    Posted 3 years ago #

    You get the access token from Facebook. Paste this URL into your browser:

    https://www.facebook.com/dialog/oauth?
    client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&response_type=token

    Before loading the facebook page, make sure you change YOUR_APP_ID to your app id. Get you app ID from the SFC settings page.

    Also, you must change YOUR_URL to the URL for your web site that is linked to your app. E.g. my app is for my website (http://www.theyhypervisor.com) so I replace YOUR_URL with http://www.thehypervisor.com

    Once you've changed those two parameters, get your broswer to load the Facebook URL. This might cause a popup from facebook to appear, and once the process is complete your browser will be redirected by Facebook to the URL you supplied.

    The access token will be embedded in the URL in your browser's address bar. It starts after "access_token=" and ends before "&expires_in"

    e.g. Facebook redirected my browser to "http://www.thehypervisor.com/#access_token=99999999999999|9.9aaaaaaaaaaaaaaaaaaaaaaaaa__.
    99999.9999999999.9-999999999|xxxxxxxxxxxxxxxxxxxxxx&expires_in=7109"

    So my access token would be 99999999999999|9.9aaaaaaaaaaaaaaaaaaaaaaaaa__.99999.9999999999. 9-999999999|xxxxxxxxxxxxxxxxxxxxxx

    Full Facebook documentation here:
    http://developers.facebook.com/docs/authentication/

  4. silakka
    Member
    Posted 3 years ago #

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic