opengraph - Facebook Open Graph and authentification -


i'm using facebook open graph tell stories users following other users. created custom action called "trusts".

i url attached followed user user's url in site, i.e.: myapp/users/64

however when implement open graph returns error when scrapes url.

the reason of course user page behind login protocol , when scraper tries hit it, redirects login page.

i built custom page not redirect, guess what? url line (see below) causes facebook try out url anyways , facing same problem.

can help?

here code:

the object:

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# kweekwegg: http://ogp.me/ns/fb/kweekwegg#" >  <meta property="fb:app_id" content="<%= facebook::app_id %>" />    <meta property="og:type"   content="kweekwegg:user" />    <meta property="og:url"    content="<%= facebook::site_url%>users/<%= params[:facebook_user] %>" />    <meta property="og:title"  content="ange" />    <meta property="og:image"  content="https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png"/> 

the action:

function posttrust(user_id){     alert("<%= facebook::site_url %>user_scrape?facebook_user="+user_id);     fb.api(   'me/kweekwegg:trust',   'post',   {     user: "<%= facebook::site_url %>user_scrape?facebook_user="+user_id     //user: "http://samples.ogp.me/371640646273751"   },   function(response) {     alert(response.id);   } ); } 

and remember create custom page not require identification, takes user id param posttrust function - , yet fb seems still pinging url , getting error.


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -