Title: Code for Action &amp; Object
Last modified: August 21, 2016

---

# Code for Action & Object

 *  [slugpost](https://wordpress.org/support/users/slugpost/)
 * (@slugpost)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/code-for-action-object/)
 * Dear Support,
 * I have been trying to create “Open Graph Action-Object Pair”, so that I can publish
   my articles directly on my facebook timeline.
 * First of all, when I am trying to create Action – object pair as Publish – article,
   I am getting error as – “Restricted custom action
    A custom Publish action is
   restricted. Please use the common Publish action instead.” Do I need to have 
   some other permissions for this. I am admin of both website and facebook page.
 * Later, I created Action & Object pair as wrote – article. After that facebook
   is giving me some kind of code for both action and object. Where do I need to
   paste this code. Do I need to copy this in my profile php files???
 * It is also flashing another message “Required Permission: publish_actions”. How
   should I get these?
 * May be a below par questions for you guys, but I am struck here.
 * Any help would be appreciated.
 * Thanks,
    Slugpost.com
 * [http://wordpress.org/extend/plugins/facebook/](http://wordpress.org/extend/plugins/facebook/)

The topic ‘Code for Action & Object’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook_526fac.svg)
 * [Facebook](https://wordpress.org/plugins/facebook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [slugpost](https://wordpress.org/support/users/slugpost/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/code-for-action-object/)
 * Status: not resolved