| Steps to Reproduce: | 1. Go to philippeharewood.com/facebook (login on the right) and use the author role philippeharewood_test password:lintthegraph (as well as sign up with your Facebook account) or 1b. Create a fresh WordPress install and install the plugin following the instructions listed at http://developers.facebook.com/wordpress/ 2. Ensure Auth Dialog Preview User in enabled in the roles in your app 3. Ensure sandbox is off (just to be sure) 4. Switch to Auth Dialog Preview User 5. Login to WordPress and create a post in the Wordpress Dashboard 6. Publish the post 7. The post is not published on the Auth Dialog Preview User 8. Grab the access token from the roles for Auth Dialog Preview User 9. Execute curl -F 'access_token=TEST_USER_ACCESS_TOKEN' \ -F 'article=YOUR_URL_ARTICLE' \ 'https://graph.facebook.com/me/NAME_SPACE:publish' 10. This will publish to the timeline of Auth Dialog Preview User 11. Go to philippeharewood.com/facebook/publisher.html and click article or 11b. Use similar code to create a page on your site. <!DOCTYPE html> <html> <head prefix="og: http://ogp.me/ns# philippeharewood: http://ogp.me/ns/apps/philippeharewood#"> <meta charset="utf-8"> <title>Social Publish</title> <meta property="fb:app_id" content="260009694029887" /> <meta property="og:type" content="article" /> <meta property="og:url" content="http://philippeharewood.com/facebook/publisher.html" /> <meta property="og:title" content="testing FB open graph" /> <meta property="og:image" content="http://philippeharewood.com/apple-touch-icon.png" /> <meta property="og:description" content="Have you tried the debugger?" /> <script type="text/javascript"> function postArticle() { FB.api( '/me/philippeharewood:publish', 'post', { article: 'http://philippeharewood.com/facebook/publisher.html' }, function(response) { if (!response || response.error) { alert('Error occured'); console.log(response.error); } else { alert('Publish was successful! Action ID: ' + response.id); } }); } </script> </head> <body> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : '260009694029887', // App ID status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); }; // Load the SDK Asynchronously (function(d){ var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; d.getElementsByTagName('head')[0].appendChild(js); }(document)); </script> <form> <input type="button" value="Article" onclick="postArticle()" /> </form> <!-- Publish 'em --> </body> </html> 11b. Click article 12. Article will be published Thus, there is a problem with the plugin. |
|---|---|
| Expected Behavior: | When step 6 occurs, the timeline should populate with the new publish. |
| Actual Behavior: | When step 6 occurs, the timeline is not updated as shown by observation or polling 'https://graph.facebook.com/me/ |
| API/SDK: | PHP SDK |
| App IDs: |
|