Topic-icon custom action and manual button cannot work

Active Subscriptions:

None
I tried the code in this post for a custom action (manual button to trigger a post to FB; action is cook; and object is recipe; they are associated in both JFBconnect and FB) www.sourcecoast.com/forums/jfbconnect/jf...al-share-on-timeline

but it doesn't work; I then checked Facebook open graph debug tool for the page and found this error:

Errors That Must Be Fixed
Object Type Not Allowed: Direct creation of this object type is forbidden.

Can you help? Thanks.
Tom
The topic has been locked.
Support Specialist
10 years 9 months ago #34061 by alzander
Tom,
That error means that you've likely setup the action or object wrong. Can you check the following:
* You properly created the action and object within the Open Graph area of the Facebook Developer area for your app
* In the Open Graph area of JFBConnect, you have *not* checked the 'Built-in Facebook Action' or 'Built-in Facebook Object' setting.

We're working on a vastly improved method for adding buttons to your site that will be included in the 5.1 release that we're shooting to have out at the end of next month (July 2013). We already created a demo video of creating objects/actions that may help guide you through the process. The last part, about using the {JFBCAction ...} tag isn't available now, but the code you're using above is basically what we're doing.. The new code in v5.1 will have the popup, message, people, and place tagging too, which again, isn't available now.

The video actually covers an 'I ate' action for a 'meal'.. very similar to what you're doing, and is below. Again, it may help with seeing some of the settings in the FB App and JFBConnect, but towards the end, it will go off-course from what you can do.


Let us know how that goes for you. I hope it helps, but if you still have questions, just let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34069 by tomtom2001
Hi Alex,

Thanks for your reply. I think the action and object setup should be right in both FB and JFBconnect. I just created a new object (FB built-in article type). I used the same action (custom "cook" type) to act upon this object type and it worked. I also created a K2 item in JFBconnect and set it as "recipe" type (custom "recipe" type in FB is also setup). And i use the same action on a K2 item created in K2 component. It also worked.

However if I create a custom 'recipe' type in JFBconnect, the cook action cannot work on the type and i get the same facebook debug message i mentioned in my first post. If there is not a straightforward way to accomplish this, I will just wait for your July release. Anyway, i still think the component developed by you guys is excellent!

Tom
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34070 by tomtom2001
Oh, one last thing to mention about my custom recipe type's Open Graph setting in JFBconnect.

Extension: custom
Layout: custom
Object Type: recipe
Built-In Facebook Object: not checked
Published

Custom Parameters as below pointing to the Joomla content article ID:
option=com_content
view=article
id=8

Open Graph tags - this is the one i am not quite sure so i left it empty, any idea?
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34071 by tomtom2001
Just checked the facebook debugger; now the page has no previous error; the facebook can recognize

og:type: myappname:recipe; and other og tags; it is just that my cook action cannot trigger a post to facebook.

Tom
The topic has been locked.
Support Specialist
10 years 9 months ago #34078 by alzander
Tom,
Thanks for the detailed information on your setup. Do you have any other Open Graph plugins enabled? Specifcally, my guess is that you have the Open Graph - Content plugin enabled. Since you have a custom object being defined on content too, JFBConnect may be getting confused and not think the action is really associated with your custom object for that article.

Can you try:
* Disabling all other Open Graph plugins, except custom since that is defining both your object and action and try again.
* If that works, enable all other Open Graph plugins, except content, and try again.
* If that works, enable the Content plugin *but* order it to be lower (higher number) than the Open Graph - Custom plugin.

Let us know if any of those steps help any and it will help us figure out how to proceed.

Finally, for the "Open Graph Tags" box in the custom object you created, you can add special tags specific to that page there, like the ingredients in your recipe, cooking duration, or whatever you want. Those fields should also be added in the developer area on Facebook, but we do something similar in our video. The ns: syntax isn't available yet though, so you'd need to add them like:
myappname:ingredient=beans
myappname:ingredient=rice
myappname:cook_time=30
That's a little more advanced, so I wouldn't deal with that until you get the action going, but wanted to explain. Those fields can also be added directly in the article text with our tags, like:
{SCOpenGraph myappname:ingredient=beans}

Lots of flexibility, hopefully not lots of confusion :D

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34087 by tomtom2001
Hi Alex,
I follow your instruction and disabled all the open graph plugins and just left custom one.
On the article page's debug area, i see "Error: Action is not ready for this user."

However, i logged in as the admin of the facebook app and it worked fine for non custom type. Not sure why?

Tom
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34089 by tomtom2001
Just used another facebook app admin account to try; and it worked!

Perfect, but not sure why?

Tom
The topic has been locked.
Support Specialist
10 years 9 months ago #34094 by alzander

Error: Action is not ready for this user.

In the Action setup in JFBConnect, there's some parameters for how often the action can be 'used'. It's likely either set to one-time only, or has a value of 1 time per day, or something like that. The error message above just means it's not ready to be used again by the user. Either make it useable multiple times or decrease the frequency (at least while testing).

Hope that explains, but as always, let us know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 9 months ago #34101 by tomtom2001
Buddy,
Yes, you are exactly right. I set the frequency at 100/day, which is too low. Now, i changed it and it works like a charm!
Just out of curiosity.

Under the Custom Parameters of an object, is it possible to put some code under Open Graph tags? so that I can customize the og:title for each page? (I am using a custom script to pull out different photos for users; i would like to show the photo caption as the object title so that users see different og:title on facebook post after they trigger the action).

You guys rock!

Tom
The topic has been locked.