-
-
Save godfat/3215178 to your computer and use it in GitHub Desktop.
rest-more facebook error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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