Skip to content

Instantly share code, notes, and snippets.

@godfat
Forked from lulalala/gist:3214537
Created July 31, 2012 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godfat/3215178 to your computer and use it in GitHub Desktop.
Save godfat/3215178 to your computer and use it in GitHub Desktop.
rest-more facebook error
client = RestCore::Facebook.new(log_method: method(:puts), app_id: FACEBOOK_APP_ID, secret: FACEBOOK_APP_SECRET)
client.post("1234567/feed", params: post_params)
# error:
# RestCore::Facebook::Error::InvalidAccessToken: {"error"=>{"message"=>"(#200) This API call requires a valid app_id.", "type"=>"OAuthException", "code"=>200}} from https://graph.facebook.com/1234567/feed
# secret access token:
client.post("1234567/feed", params: post_params, {}, :secret => true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment