Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

[Access Token] Extend specific API version #376

Closed
MaksBrainiac opened this issue Mar 5, 2015 · 3 comments
Closed

[Access Token] Extend specific API version #376

MaksBrainiac opened this issue Mar 5, 2015 · 3 comments

Comments

@MaksBrainiac
Copy link

public function extend($appId = null, $appSecret = null)
return static::requestAccessToken($params, $appId, $appSecret);

Makes "GET https://graph.facebook.com/v2.0/oauth/access_token....." request,
can not set API version to 2.2.

@MaksBrainiac MaksBrainiac changed the title [Access Token] Extend [Access Token] Extend specific API version Mar 5, 2015
@gfosco
Copy link
Contributor

gfosco commented Mar 10, 2015

Are you using 4.0.20? I'm looking at the code, and it should use the version specified in FacebookRequest, which is 2.2... there's no code there to specify 2.0.

@MaksBrainiac
Copy link
Author

OK, new FacebookRequest default API version is 2.2,
How can I extend token using new Facebook Graph API Version 2.3?

@SammyK
Copy link
Contributor

SammyK commented Apr 1, 2015

@MaksBrainiac Unfortunately there isn't a way to specify a Graph version number in 4.0 for extending an access token. It will just fallback to the default as specified in the SDK. You're using an old version of the PHP SDK that defaulted back to Graph v2.0. You'll need to upgrade your version of the PHP SDK to the latest Graph version for now.

I just submitted a PR #387 which bumps the Graph version to v2.3, so once that gets merged & tagged you can just upgrade to the latest 4.0 SDK version to default to Graph v2.3.

@gfosco gfosco closed this as completed Apr 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants