jstolpe / instagram-graph-api-php-sdk

MIT License
112 stars 29 forks source link

app version #18

Closed abelr22 closed 4 months ago

abelr22 commented 4 months ago

Not issue, just a question. Your sdk is awesome. I just want to know where i can update the app version. currently it post to https://graph.facebook.com/v14.0/{ig-id}/media_publish. i want to update it from v14.0 to the current version.

jstolpe commented 4 months ago

Thanks and glad to hear you are using the sdk! You can override the default graph version of "v14.0" in the config array that you pass in on instantiation. Here is an example:

$config = array( // instantiation config params 'user_id' => '', 'access_token' => '', 'graph_version' => '' // ADD THIS TO YOUR CONFIG TO OVERRIDE GRAPH VERSION );