Note that there are some explanatory texts on larger screens.

plurals
  1. POFB Open Graph OAuthException: (#3502) og:type is website and not namespace:object
    primarykey
    data
    text
    <p>I am trying to add a custom action and object to my website with og. As stated in previous questions I searched through, the debugger scrapes the website properly and confirms that it is they way it should be without any errors, warnings, or exceptions.</p> <p>However, when I post to that object with the php sdk, I am getting this exception from FB:</p> <blockquote> <p>OAuthException: (#3502) Object at URL //mypage.com/image/details has og:type of 'website'. The property 'photo' requires an object of og:type 'app_prod:photo'.</p> </blockquote> <p>[note I have removed all "http://" so that stackoverflow would not render them as links]</p> <p>The php sdk call:</p> <blockquote> <p>$ret_obj = $facebook->api('/me/app_prod:love', 'POST', array(<br> 'photo' => '//mypage.com/image/details',<br> 'access_token' => $token ));</p> </blockquote> <p>The head of the page looks like this: </p> <blockquote> <p>&lt;head prefix="og: //ogp.me/ns# fb: //ogp.me/ns/fb# app_prod: //ogp.me/ns/fb/app_prod#"&gt;</p> <p>&lt;meta property="fb:app_id" content="APP_ID"&gt;<br> &lt;meta property="og:type" content="app_prod:photo"&gt;<br> &lt;meta property="og:url" content="http://mypage.com/image/details"&gt;<br> &lt;meta property="og:title" content="A Picture I love"&gt;<br> &lt;meta property="og:image" content="http://images.mypage.com/8f9117301e00dbfb.jpg"&gt;<br> &lt;meta property="og:description" content="Here is a description"&gt;</p> </blockquote> <p>Things I've double checked:</p> <ol> <li><p>I have the correct app id.</p></li> <li><p>When I use the curl command supplied by facebook for the action, it posts fine.</p></li> <li><p>My head and meta tags are exactly what I copied from the object "code" that facebook supplies.</p></li> </ol> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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