Update Facebook Graph API Calls

Hi, I’ve set up a Sharetribe instance a while ago, and we’re using v 2.5 of Facebook API. Now that’s going to be unsupported, and I have to migrate all calls to Graph API v 2.6 or higher. I suppose I should go with the latest, v 2.12. But my question is - can anybody give some hints on which files needs to be changed? See required changes in the picture. APIupgrade|690x238

Hey there!

I don’t have much ideas about what to update precisely however we updated the master code to support the Graph API up to v2.8 few months ago.

Maybe you could have a look at the current master branch in Sharetribe, or browse earlier Pull Requests to find the diff about it?

Hopefully this helps a bit!

config/facebook_sdk_version.rb

module FacebookSdkVersion
  # Server-side SDK version
  SERVER = "v2.8"

  # The client-side JavaScript SDK version
  CLIENT = "v2.8"
end

So you can change used version here and then in your Facebook application settings switch to use desired version, e.g. 2.12

2 Likes

Ok, thanks you two. I think I figured it out. Thanks alot.