Problem/Motivation

When I go to add a user I get an error stating:

There was an unexpected problem serving your request
Please try again and contact us if the problem persist including 99b7a5fd-06a7-4613-9ca9-09c370c03661 in your message.

In the dblog I see the following:

InvalidArgumentException: The "graphApiVersion" must start with letter "v" followed by version number, ie: "v2.4". in League\OAuth2\Client\Provider\Facebook->__construct() (line 89 of /home/sitename/vendor/league/oauth2-facebook/src/Provider/Facebook.php) [99b7a5fd-06a7-4613-9ca9-09c370c03661].

I tried to add a v to the version but it only accepts numbers and for the life of me I cannot find where I need to add the callback over on the Facebook side like I did for the login.

Suggestions?

Command icon Show commands

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

Christopher Riley created an issue. See original summary.

manuvelasco’s picture

Try adding the API version without coma in the social post Facebook configuration form, for example in my case I just added 18

megakeegman’s picture

I think it will make sense to update the documentation under the graph api version field. Currently it says to copy from facebook, but you are correct that it is an integer field, so really just use the up/down arrows to select the api version that matches the API version of your facebook app

megakeegman’s picture

Title: Cannot Add User » Improve documentation on selecting graph api version

megakeegman’s picture

Status: Active » Needs review

  • megakeegman committed ca8452b9 on 3.0.x
    Issue #3304879: Improve documentation on selecting graph api version
    
megakeegman’s picture

I went ahead and merged the changes, but will keep this in needs review for the moment in case there happen to be any further feedback

megakeegman’s picture

Going ahead and closing. Additional documentation is also being introduced in another issue: https://www.drupal.org/project/social_post_facebook/issues/3422380

megakeegman’s picture

Status: Needs review » Fixed
megakeegman’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.