Topic-icon Open graph action login

Active Subscriptions:

None
12 years 7 months ago #38009 by andbal2
Replied by andbal2 on topic Open graph action login
hi, i disabled user message or explicitly shared capabilities and changed code but not works
The topic has been locked.
Support Specialist
12 years 7 months ago #38014 by alzander
Replied by alzander on topic Open graph action login
Can you let me know where we can test?

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

None
12 years 7 months ago #38023 by andbal2
Replied by andbal2 on topic Open graph action login
sure, this is the facebook page www.facebook.com/pages/DEMO-Shop/197824617066874
click "Shopping" to visit application
inside application you can click "Richiedi informazioni" is an article with public access
or you can click "Sala giochi" for another article but in 3 seconds you will redirect to login, so click Facebook and give permissions to redirect again to "Sala giochi". now you are alos looged

hope this helps, tx
The topic has been locked.
Support Specialist
12 years 7 months ago #38043 by alzander
Replied by alzander on topic Open graph action login
Andrea,
That does help a lot. I was able to login and in the code, I see the following Javascript call:
jfbcJQuery(document).ready(function () {setTimeout(function(){jfbc.opengraph.triggerAction('4','https://103.YOUR-DOMAIN.com/richiedi-informazioni');}, 10000);});
So, things seem correct there, but I'm not seeing anything trigger either. There's a few things to try to narrow things down from here:
* Set the "Enable Debug Mode" to "Yes" in the Configuration -> Misc area of JFBConnect. That may show a popup which explains why the post didn't occur.
* Remove the redirect to your FB Apps page so I can test on the 'real' page. Through an iFrame, I can't alter any of the Javascript to test further.

Let me know if the first option above brings up any ideas, and, if not, I'll gladly debug on the original site.

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

None
12 years 7 months ago #38115 by andbal2
Replied by andbal2 on topic Open graph action login
hi, redirect is disabled and debug mode is active, i hope this help to solve it. you can try also to see "Sala Giochi" content, it's an article with text and image inside same category. tx
The topic has been locked.
Support Specialist
12 years 7 months ago #38132 by alzander
Replied by alzander on topic Open graph action login
The trigger is working, but the action posting to the user's Timeline is failing. The reason looks to be because your Open Graph tags can't be fully parsed by Facebook. Specifically, there's an image tag on the page of:
<meta property="og:image" content="/images/logo.jpg"/>
If you're using the {SCOpenGraph image=...} tag or setting a default image tag for your site in the Open Graph area, it *must* have the full URL to the page. Try fixing that and hopefully that will get you going.

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

None
12 years 7 months ago #38152 by andbal2
Replied by andbal2 on topic Open graph action login
hi, now image has right url but sorry i don't see trigger (i mean above the chat in right side) or timeline post, tx
The topic has been locked.
Support Specialist
12 years 7 months ago #38158 by alzander
Replied by alzander on topic Open graph action login
Alright.. I think it's going now. When I first went directly to the page, I was automatically logged in, and then the following message shows up in the blue-box popup at the bottom of the screen:

Error: (#3502) Object at URL 103.YOURDOMAIN.com/richiedi-informazioni has og:type of 'website'. The property 'article' requires an object of og:type 'article'.

That is likely because Facebook hadn't re-scanned the page since you fixed the image tag. I then ran your page through the Facebook URL Debug tool, and no errors were shown. That also updates Facebook cached data about the page.

After that, I reloaded the page and the following error appears:

Error: (#3506) The action type news:Read does not exist or is not approved, so app 640297502671020 can only publish to administrators, developers, and testers of the app. User 1251253607 is not one of those roles.

That's a normal error since I'm not an administrator of your app.. because of that, your app can't post to my FB Activity Log. So, I'd say to test now and try again. The only thing to note is that your action should be "news.reads". I'm not sure why it shows news:Read in the error, but that may just be a mistake from Facebook.

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

None
12 years 7 months ago #38197 by andbal2
Replied by andbal2 on topic Open graph action login
ok but if i use action news.reads i don't need to send it to facebook approve, right? it's a standard facebook action. i think not works because facebook says news:Read, this not a standard action so i need to ask approve. this makes sense? how can i solve it? tx
The topic has been locked.
Support Specialist
12 years 7 months ago #38204 by alzander
Replied by alzander on topic Open graph action login

ok but if i use action news.reads i don't need to send it to facebook approve, right?

All actions have to be approved by Facebook before all users can use that action on your site. Since it's a built-in Action, you don't need to create it in the Facebook Developer -> Open Graph area for your app. You can simply create the Object/Action in JFBConnect and start using it with your test users. For example, you don't need to create object types for Article or Website in your App before using them as Objects.

i think not works because facebook says news:Read, this not a standard action so i need to ask approve.

If you're creating an action that is intended to trigger when a user has viewed/read an article for 10 seconds or so, you *must* use the news.reads action. That is the only action that Facebook would approve for reading content on your site. They will not approve custom actions for that purpose.

I hope that helps explain,
Alex
The topic has been locked.