Topic-icon Autopost on first login

Active Subscriptions:

None
10 years 7 months ago #36764 by sougatab
Alex,

In the earlier version of JFBConnect, there was an option to post to an user's wall on first login.
I guess due to some FB policies, you have removed it. Is it possible to get it back so that this gets done after explicit permission from the user?

Else how can we use open graph actions so that a custom message is posted on an user's wall on clicking a button after login?

Thanks!
The topic has been locked.
Support Specialist
10 years 7 months ago #36766 by alzander
Replied by alzander on topic Autopost on first login
Yes, it was removed due to policy changes from Facebook. There's a very easy PHP call that can be made if you implement a way to notify the user of the post to their wall.

For Open Graph Actions, please check out our Open Graph Actions for Joomla configuration guide. You can create an action and then use the {JFBCAction id=xx text=Button Name} tag to add a button the user can click to post to their wall.

Just so you know, Facebook has already said that they will not approve login or registration actions as they aren't very socially relevant. The actions need to have more context to them than just "I logged in".

I hope that helps explain, but if not, let me know.

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

None
10 years 7 months ago #36771 by sougatab
Replied by sougatab on topic Autopost on first login
Thanks Alex.

Can we use an image button for open graphs action?
Is there any tag like:
{JFBCAction id=xx image=image URL}
The topic has been locked.
Support Specialist
10 years 7 months ago #36777 by alzander
Replied by alzander on topic Autopost on first login
There isn't yet, but it something we'll likely have in the v5.2 release. There is likely some CSS that I could muster up that would make it into an image as well, if you'd be interested in tinkering a little.

Let me know if you'd like that.

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

None
10 years 7 months ago - 10 years 7 months ago #36819 by sougatab
Replied by sougatab on topic Autopost on first login
Alex,

We actually need that as part of an ongoing project.
It'll be great if we can create an image button for triggering an open graph action.

Thanks!
Last edit: 10 years 7 months ago by sougatab.
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #36820 by sougatab
Replied by sougatab on topic Autopost on first login
Alex,

Another follow up question.
How can we have a default message in the pop up (the user may edit) while triggering an open graph action?

Thanks!
Last edit: 10 years 7 months ago by sougatab.
The topic has been locked.
Support Specialist
10 years 7 months ago #36839 by alzander
Replied by alzander on topic Autopost on first login

How can we have a default message in the pop up (the user may edit) while triggering an open graph action?

You can't. Facebook doesn't allow pre-filled messages, per their Terms of Service. They want either a) no message at all with the action or b) the user to intentionally enter a message. That helps them determine the context and importance of the action for the user. You can read more on the Facebook Using Actions page. Specifically, for the message parameters:

Allows users to write a personalized message attached to this action. You can only use this when the text is entered by the user and not pre-populated. You can mention users and pages inline using mention tagging.

We actually need that as part of an ongoing project.
It'll be great if we can create an image button for triggering an open graph action.

I'll have to get back to you on this. I just did some quick investigation, and it's not a simple CSS line you could add for an image. I'll let you know what we find, but it may take a few days to get you an answer.

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

None
10 years 7 months ago #36853 by sougatab
Replied by sougatab on topic Autopost on first login
Thanks Alex.
I hope you will find some solution. Will some jQuery trick help?
The topic has been locked.
Active Subscriptions:

None
10 years 6 months ago #37038 by sougatab
Replied by sougatab on topic Autopost on first login
Hi Alex,

We have a button that triggers an open graph action. However if the user is not logged in or is a new user, then the registration process starts. Sometimes the user is redirected to another page and the open graph action is not triggered. The user has to again go back to the page and click the button. Is there a way to automatically bring the pop up that says "Post to Timeline" without the user clicking again (especially for new users)?

Thanks!
The topic has been locked.
Support Specialist
10 years 6 months ago #37078 by alzander
Replied by alzander on topic Autopost on first login
Hmm. I can see what you mean about that. Right now, the button will always show and will try to get the permission from the user to allow posting actions for the user. If they don't have an account, it will ask them to create one.. that's a feature we thought would be nice. However, if your New User Redirection is not set to "Same Page" or you have the registration mode set to "Normal Registration" so the account isn't automatically created, the user will be directed somewhere away from the page they clicked on. In either case, when they come back to the page, they'd have to click the action button again.

I'm not sure the best way to fix the above scenario. Obviously switching to Automatic Registration with Same Page redirection gets it very close to correct (though the popup won't appear automatically). That may be something we could investigate fixing sooner than later. The other settings would be more difficult to fix quickly.

Alternatively, we could hide the Action button to users that aren't logged in.

Let me know if that gives you any ideas and we'll help how we can, but I'm not sure we'll be able to easily fix things in this release.. it may have to wait for at least v5.2.0.

Thanks,
Alex
The topic has been locked.