June 27, 2014 - JFBConnect v6.1 Released! Instagram, Github, VK integration; new Social Stream to show your stream from Facebook, Twitter and LinkedIn; Lots more. See The full changelog

Autopost on first login

Autopost on first login

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!

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19098 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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}

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19098 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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!

Edited by: sougatab - Sep-17-13 05:45:47
sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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!

Edited by: sougatab - Sep-17-13 09:54:36
sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19098 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

Thanks Alex.
I hope you will find some solution. Will some jQuery trick help?

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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!

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19098 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

Alex,

It'll be great if you can create this feature in the next release.

We have created a button for open graph action. On clicking the button, the FB app appears for the required permissions. Also the pop up appears to post to timeline. After that the message doesn't post to timeline. Also I guess some notification should appear to inform the user that a message has been posted to the user's timeline. No such notification is seen. Can you please guide on what can be the probable reasons for this issue?

Thanks!

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

Can you go to the JFBConnect configuration -> Misc area and enable the "Enable Debugging" setting? Then, if the action doesn't post properly, a popup message should appear with a reason why.

Alternatively, look at the JFBConnect -> Open Graph -> Activity Log area and see if it looks like the action was attempted to be posted and/or if there's any error message there as well.

Let me know if that helps you narrow things down or not and we'll gladly try to help more.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19098 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

Hi Alex,
I enabled debugging in JFBConnect. When I post to facebook I get this error "Error: Action is not associated to the object type of this page.".
What can be the possible reason for this?

Thanks!

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

When you create the Action in JFBConnect you have to associate it to the objects you've created. There should be a section with checkboxes at the bottom of the action setup area that shows all of your objects. Make sure that the Action is connected to the Object type (the page) you're trying to use the action on.

I hope that makes sense, but if not, let me know.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19098 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

Hi Alex,
We have created a custom action and associated it with a custom object type. The checkbox at the bottom of the action setup area is also checked. We are using it in a article.
Also there is one more issue. When we enable the opengraph plugin for articles all pages except the homepage stop working.
Thanks!

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

Hi Alex,

Please check your inbox for admin login details.

Thanks!

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

Thanks for sending the credentials. When I enable Error Reporting in Joomla and then enable the plugin, the following error message is shown on your content pages:

Code:

Fatal error: Call to undefined function mb_split() in /home/wwwinour/public_html/libraries/sourcecoast/articleContent.php on line 357

The mb_split function is commonly installed and enabled in all versions of PHP, but your site doesn't seem to have it. To fix, please try editing libraries/sourcecoast/articleContent.php and at line 357, you'll see:

Code:

$parts = mb_split('\s+', $articleText);

Replace that with:

Code:

if (function_exists('mb_split'))

   $parts = mb_split('\s+', $articleText);
else
   $parts = preg_split('\s+', $articleText);

Try that and let me know how it goes.

If you're using the Open Graph Action in an article, you'll need that plugin enabled, which hopefully the above will fix.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19098 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

Hi Alex,
Thanks for the awesome support. Both issues are now fixed.

Thanks!

sougatab
useravatar
Offline
76 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Autopost on first login

No problem for the help, and thanks for the feedback. I've entered that issue into our tracker and the fix I provided should be in our next release as well.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin | Sendy

alzander
Alex
useravatar
Offline
19098 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
7928
Total Polls:
0
Total Posts:
34677
Average Posts Per Hour:
1.0
User Info
 
Total Users:
23173
Newest User:
IGD
Members Online:
2
Guests Online:
829

Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program