Facebook News Subject

I am setting up to publish the story on facebook, but I get the following warning:

You, or this Open Graph Test User application, should have published this action at least once.

I get idthe answer, but when I click on it, I am redirected to "Page not found."

Here is my code:

FB.api(
   'me/objects/appnamespace:objecttype',
   'post',
   {
      object :{
         app_id: myappId,
         objectype: myurl,
         title: "Sample Organization",
         image: mylogo,
         description: ""
      }
   },
   function(response) {
      if (!response) {
         alert('Error occurred.');
      } else if (response.error) {
         document.getElementById('result').innerHTML =
                          'Error: ' + response.error.message;
      } else {
         document.getElementById('result').innerHTML =
                     '<a href=\"https://www.facebook.com/me/activity/' +
                     response.id + '\">' +
                     'Story created.  ID is ' +
                     response.id + '</a>';
      }
  }
);
+3
source share

All Articles