Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook wall post error: OAuthException :: (#1500) The url you supplied is invalid
    text
    copied!<p>I have a web-based news app that runs on Heroku. When users post a comment to a news story on my app, my app forwards the comment to the user's facebook wall using <code>fb_graph</code>. Everything worked perfectly until a couple of weeks ago. For no reason that I can explain I am now seeing some baffling behavior. </p> <p>Now, when a user submits a comment to a story the FB API responds with, <code>OAuthException :: (#1500) The url you supplied is invalid</code>. If, the same user then submits additional comments to the same story those comments are posted to the user's FB feed just fine.</p> <p>I have used the FB Graph API explorer to confirm that I have valid access tokens, and that my app does accept posts to the token-owner's FB feed.</p> <p>To make things even more baffling, when running my web app in development on localhost all of the posts go through just fine to my development FB app.</p> <pre><code>def post_to_facebook(story, post) auth = Authentication.find_by_provider_and_user_id("facebook", current_user.id) if auth me = FbGraph::User.me(auth.token) if me.permissions.include?(:publish_stream) begin me.feed!( :message =&gt; "#{best_name(current_user)} made the following post to NewsWick: #{post.contents}", :name =&gt; story.title, :link =&gt; "https://www.newswick.com/stories/"+story.id.to_s, :description =&gt; "Story posted to the NewsWick world-wide news service" , :picture =&gt; best_photo(story)[:photo_url] ) rescue =&gt; e @msg = "Facebook posting error: "+ e.to_s puts "Facebook feed posting error: #{e.message}" end else @msg = "No longer authorized to post to Facebook." end end return @msg end </code></pre> <p>One last thing to note, the only thing that I have changed w/r/t how my app interacts with FB in the last two weeks was that i accepted FB's <code>July Breaking Changes</code>.</p> <p>Anyone have any clues. This is driving me bonkers!!!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload