rbahumi
El Presidente
Just Getting Started
Member Likes (0)
Hi,
I am working with the Ultimate Facebook plugin, with BuddyPress and the Social theme. I have a problem with the Facebook Like Button on the BuddyPress activity page. This problem have occurred to me in the past, and was resolved when I refreshed my Facebook App secret API key.
I tried that again, it didn't work. Trying a different Facebook App, also didn't work. The like button works perfectly fine on the regular WordPress posts, it seems that the problem only occurs when trying to Like an activity.
I have attached a screenshot of the problem (like_error1.png). When clicking on the red error link (shown at the picture), this is the error message I'm getting: The page at https://surf-space.com/members could not be reached.
Trying to test the reachability of the page with Facebook's debugger - returns the 200 Response Code.
I tried to investigate this over the web, and found that there was a Joomla plugin that also had this issue. I don't know if this is related, but they have solved it by replacing spaces with ' ' .
(here is a link).
Please also take a look at last post on the subject, at the beginning of this page.
Regards,
Roei.
Responses (57)
Member (joined May 2012) Likes (0)
Hi again,
I have an update : the Like have started to work again - I didn't change anything.
Have no idea what causes this issue..........
Please advice.
Another thing - all the activity likes, point to the same address -
https://surf-space.com/members , instead of pointing to a specific address (https://surf-space.com/members/rbahumi/activity/3 for example).
As a result, liking a single activity, shown as if the user likes all the activities on the page (once the page is refreshed).
Support Kangaroo (joined March 2011) Likes (1)Liked by: 
Greetings Roei,
We do it is called Facebook.
Starting towards the end of March of this year the trouble with Facebook started and the incompetent idiots even screwed up there own recently released plugin from working.
Obviously we did not do anything either and it started working again as you had mentioned.
Expect the turmoil to continue as Facebook continues to try to lock people down into their logged in accounts so they can indeed get their advertising into our faces.
This may be something we can do something about.
Therefore I will see if I can get the lead developer in here with his invaluable insight into this plugin for his advice/advise for us.
Though this may take a bit longer then a normal ticket, I will try to get him in here asap.
Cheers, Joe
Member (joined May 2012) Likes (0)
:-)
Thank you.
Support Kangaroo (joined March 2011) Likes (0)
Greetings Roei,
Just touching base with you to let you know that we have not forgotten about you nor the issue.
Hopefully our lead developer will make it in here for further clarification soon or have the issues been resolved perhaps recently by Facebook?
Please advise.
Cheers, Joe
Member (joined May 2012) Likes (0)
Well, currently the like button works, I hope it will remain that way. As you said, it is probably a Facebook issue which is not related to your Ultimate Facebook plugin.
Regarding the second issue, likes that point to the same page and not to a specific activity - I am still waiting for your fix.
Best,
Roei.
Support Kangaroo (joined March 2011) Likes (0)
Greetings Roei,
Thank you for the update, it is certainly appreciated.
I have indeed messaged the lead developer to come in here and check out this last remaining issue i.e. Regarding the second issue, likes that point to the same page and not to a specific activity - I am still waiting for your fix.
Hopefully while making his rounds we will see him in here soon with his invaluable input and insight into what may be going on here with these likes.
Cheers, Joe
Member (joined May 2012) Likes (0)
Are there any updates?
This is taking too long.....
Member (joined May 2012) Likes (0)
Can someone please reply? Are there any updates?
Member (joined May 2012) Likes (0)
Hello?!?!?!?!?!
People Person (joined February 2012) Likes (0)
rbahumi
I am VERY sorry for the delay here.
I am escalating this to the developer directly as I type this.
However I am seeing in testing that using the Like button provided by the theme in the Buddypress options does go directly to the post liked.
Which LIKE button are you using? The Facebook or the Social one?
Best,
Kimberly
Member (joined May 2012) Likes (0)
Hi Kimberly,
I am not sure... Your question is a bit confusing.
The facebook 'Like' button requires an Facebook App ID. The only place I have found, on which I can insert such an ID, is the Ultimate Facebook's admin page.
On the other hand, even when I disable the 'Like' button functionality in the Ultimate Facebook's admin page, the like button still appears in each activity. The only thing that can remove this Like button, is the Social theme's Buddypress settings: "Do you want to enable facebook LIKE in activity stream".
Maybe the Social theme developer was relying on the user to have the Ultimate Facebook plugin.....
So, as I said, your question is a bit confusing to me.... is this what you mean by the "Social one"?
Developer (joined April 2011) Likes (0)
Hello,
Going by what you said in your last post, the "Like" button in your activity stream doesn't come from the Ultimate Facebook plugin, but from the theme. I am not sure which URL the theme uses to generate the Like button, but it appears there is an issue there.
Member (joined May 2012) Likes (0)
all the activity likes, point to the same address -
https://surf-space.com/members
People Person (joined February 2012) Likes (0)
I'm very sorry rbahumi for not being clear.
Yes, i am referring to the one supplied by the Social theme in the Buddypress Settings. This like button is independent of the Ultimate Facebook plugin. It does not rely on its presence at all.
Member (joined May 2012) Likes (0)
Ok, so just to make sure we are clear here - Yes.
I am referring to the Social theme activity like button.
Member (joined May 2012) Likes (0)
Is there any update on the subject?
Support Kangaroo (joined March 2011) Likes (0)
Greetings Roei,
Sorry for the delay in a reply here, I have been away on vacation.
Though it appears that you are indeed a couple versions behind in the updates to this plugin, the lead developer seems to think it is a theme issue which I tend to agree taking the evidence that we have and also that it appears that it could also be related to Buddy Press itself.
I have noticed that you are a couple of versions behind now on the Ultimate Facebook plugin itself and of Buddy Press as well.
As you can see Buddy Press claims that they have fixed "hundreds of bugfixes" with there 1.6 release.
Please consider updating and letting me know if you are indeed still experiencing this issue.
Look forward to hearing about your results in any event.
Cheers, Joe
Member (joined May 2012) Likes (0)
Hi @aecnu,
I have upgraded to the new Ultimate Facebook version just now, but as you can see form my previous chat with @Kimberly & @Vladislav, the like button does not come from the Facebook plugin - it comes from the Social Theme.
Regarding the new BuddyPress - I tried upgrading it and had some issues. I will need to contact them before I can upgrade.
Please contact them and let me know what is the status.
Support Kangaroo (joined March 2011) Likes (0)
Greetings Roei,
Thank you for letting us know about the Buddy press issues, it appears other folks are having trouble as well and it seems like it is connected to memory issues but that is a personal observation I have made.
I admit that I personally had no issues upgrading my Buddy Press on my servers but offering the information as observational rather then cure since to date none of those having trouble with the Buddy Press issue have been resolved that I am aware of.
I believe the new lead developer of this theme will be coming out with a release soon hopefully addressing this issue. I have pinged him a couple of times regarding this ticket and he has indeed responded to other issues relating to this theme though he has yet to release an update regarding these issues.
I will keep after it though.
Thank you for being a WPMU Dev Community Member!
Cheers, Joe
Member (joined May 2012) Likes (0)
Any updates????
People Person (joined February 2012) Likes (0)
You should try the 1.3.5.3 update :)
Member (joined May 2012) Likes (0)
I have just upgraded, and it is still the same. The problem remain. Likes point to https://surf-space.com/members.
Please advice.
Member (joined May 2012) Likes (0)
@Jeffri, this issue is taking way too long to solve.
As you are the theme developer, can you please take a look at this?
Regards,
Roei.
Support Kangaroo (joined March 2011) Likes (0)
Greetings Roei,
Just touching base with you to let you know that I have indeed sent @Jeffri another ping to this ticket and hopefully he will be in here soon with some news we can use.
Cheers, Joe
Designer (joined July 2012) Likes (0)
Hi Roei,
Sorry for the delay for getting back to you.
I have looked into the issue, but I can't replicate the same issue on my local installation.
We are getting the like URL using bp_activity_thread_permalink function, which is a BuddyPress function. It returns either activity URL (i.e /activity/p/123/), blog post URL or forum post URL. I wasn't able to replicate the condition that it could return /members URL, so I have no idea. :(
Do you have some test account that I can try to access your website?
Thank you.
Jeffri
Member (joined May 2012) Likes (0)
Sure,
username: Jeffri
password: Jeffri
Here is the link to the activity page, please try to like one of these activities:
Thank you,
Roei.
Designer (joined July 2012) Likes (0)
Hi Roei,
I see that the HTML is generated with a correct URL.
I tried the Debugger from Facebook, it seems like the issue is with open graph. Here is the link to the debugger.
The activity single page have the og:url set to /members, so I think we found the reason why the likes always go to that page. It seems the open graph information was added by Ultimate Facebook plugin, so I will have to work with Ve to get this issue sorted.
Thank you.
Jeffri
Member (joined May 2012) Likes (0)
Ok, thank you Jeffri.
Please keep me posted.
Roei.
Designer (joined July 2012) Likes (0)
Hi Roei,
Just talked to Ve and he said he will fix this issue in his plugin. :)
Thank you.
Jeffri
Developer (joined April 2011) Likes (0)
Hi,
Thank you for your patience with the issue, the latest Ultimate Facebook plugin release (v2.4.1, just released) addresses the issue and should have it fixed. Also, many thanks to @Jeffri for all the help in pinpointing and debugging the issue :)
Member (joined May 2012) Likes (0)
I just installed v2.4.1 - the like functionality does not work.
Actually, it works for a brief moment, and then, returns to the previous state:
After pressing the "like" button of any activity, the status changes to "1 person like this....", a comment box is opened, and then it immediately disappeared by itself, and the like status returns to its previous state.
Please advice.
Support Kangaroo (joined March 2011) Likes (0)
Greetings Roei,
Thank you for the feedback, it is certainly appreciated.
I will inform the lead developer of the Ultimate Facebook plugin @Vladislav of the extremely brief success and persisting issue.
I will try to get him in here again asap.
Cheers, Joe
Designer (joined July 2012) Likes (0)
Hi Roei,
Thank you for your patience. I just released Social 1.3.5.4 that should address the remaining issue.
Thank you.
Jeffri
Member (joined May 2012) Likes (0)
Hi Jeffri,
1. I've installed the new version, it only works for new activities (created after the migration to the new theme version). Can you guess why old activities-like don't work?
2. The posted content on Facebook does add the correct link now (thank you for that :-) ), but it only puts an Anchor, with the word "Members" on Facebook's wall. (images attached). This is not an informative content, and it wont attract new users to the my website. Is there anything that can be done about that? (maybe adding "excerpt" text)
Thank you,
Roei
Designer (joined July 2012) Likes (0)
Hi Roei,
1. I think it have to do with Facebook cache. The old links are cached and it still return the old open graph information. To flush cache, one known way is to submit every links that is not working to Facebook debugger. I see some old activites before the update is working fine though.
2. This have to do with open graph information generated by Ultimate Facebook plugin, so I'll get @Vladislav here.
Thank you.
Jeffri
People Person (joined February 2012) Likes (0)
Very sorry for the dealy!
Ve is full out on a few other items and will be here as soon as he can!
Member (joined May 2012) Likes (0)
Are there any updates?
Developer (joined April 2011) Likes (0)
Hello,
I'm sorry, it seems I forgot to update this thread as well - the second issue you mentioned should be solved with the latest Ultimate Facebook plugin release (v2.5, released a couple of days ago). The first issue, however, is caused by Facebook cache, just like Jeffri explained. The cache is time-limited, so it'll be rebuild over time - if you wish to update it immediately, you can use the Facebook debugger tool, as Jeffri excellently explained.
Member (joined April 2011) Likes (0)
Hello
I have the same issue.
Basically there seems to be a conflict with the ultimate facebook plugin and the theme .
when I disable ultimate facebook the likes work well in activity plugin. I need the facebook registration and have tried disabling other options in ultimate facebok but still the problem is there, Once you click like it reverts back to the original unliked state
it works however when I disable ultimate facebook
Hope to see a speedy reply and yes I have doabled all other plugins, this seems to be the culprit.
I have also tried to disable theme option to show like so I use the ultimate facebook, but it doesnt show any like option on the activity
Designer (joined July 2012) Likes (0)
Hi edwardhadome,
Have you tried updating the Social theme and Ultimate Facebook to the latest version?
Thank you.
Jeffri
Member (joined April 2011) Likes (0)
yes please can you try it in your end to see and confirm that it is actually working
Designer (joined July 2012) Likes (0)
Hi edwardhadome,
Yes, I have it working here. The issue is happening on previous version of Social, but should have been fixed in the latest version. Do you have some link that I could check?
Thank you.
Jeffri
People Person (joined February 2012) Likes (0)
The member info shows you are running version 1.3.5.4
the latest is
Version 1.3.5.5
With changelog
- BuddyPress 1.6 Compatibility
- Remove footer link
Member (joined April 2011) Likes (0)
Hi sorry I just realized it was blog-mu theme I am referring to. and I have 1.3.6.1 and the last update 1.3.6.2 was for the space at the top which I resolved.
will you follow up on this thread, or want me to ask in a new thread
Thanks
People Person (joined February 2012) Likes (0)
You should probably start a new one as this one is already quite long and we have been working to resolve this based on the Social theme.
Thanks!
Member (joined April 2009) Likes (0)
Hiya,
Just checking if this issue was eventually resolved in another thread? Or by yourself separately to us? Or by us over email with you? Or using our live support?
If so, no need to reply, that's great news.
If not, or you have any more questions related to this thread, please feel free to post them below including any new symptoms or errors and tick the 'Mark as Not Resolved (re-open)' box below the post area (or else we'll miss it!)
Otherwise, happy days, glad you got it sorted :)
Thank you for being a WPMU Dev member!
Member (joined May 2012) Likes (0)
Hi,
I have 2 questions regarding the "members issue":
1 - I still see the 'Member' headline on Facebook 'Like' posts (image is attached). This is not an informative headline, I would like to customize that. How can I do that?
2 - I have added my own custom activity types. When hitting the Facebook Like button on one of those custom activities, the post on Facebook contains the users avatar, the 'Members' headline, and the 'content' of the post. My content is actually a JSON object, that is being manipulated inside the theme's costume page. How can I edit the content excerpt text, and replace the user Avatar with a (possibly available) activity photo?
Regards,
Roei.
People Person (joined February 2012) Likes (0)
I've asked Jeffri to stop by for comment again on this. I will wait for his answer with you, as I'm fairly sure it would have to coded in
Developer (joined April 2011) Likes (0)
Hello,
As for the like text content, the plugin won't try to add any content for your users - you can, however, use the exposed description filter to add a default (or member-specific description) for pages that miss this info. The filter is named "wdfb-opengraph-description", and it receives (and is expected to return) a single string, which will be used as og:description. What kind of info would you like to go there? Perhaps we can come up with an useful code snippet for you, or if we go general enough, get something together to bundle up with the next plugin release.
Also, you may find some of the other exposed OpenGraph hooks useful too:
wdfb-opengraph-type (string $type)
wdfb-opengraph-title (string $title)
wdfb-opengraph-url (string $url)
wdfb-opengraph-site_name (string $site_name)
wdfb-opengraph-description (string $description)
wdfb-opengraph-image (string $image) - global OG image filter
wdfb-opengraph-image-always_used_image (string $image)
wdfb-opengraph-image-featured_image (string $image)
wdfb-opengraph-image-fallback_image (string $image)
wdfb-opengraph-image-post_image (string $image)
wdfb-opengraph-extra_headers-name (string $name)
wdfb-opengraph-extra_headers-value (string $value, string $name)
wdfb-opengraph-property (string $meta_property)
wdfb-metabox-filter_registered_types (array $default_types, object $metabox)
Member (joined May 2012) Likes (0)
Hi @Vladislav,
Please let me redescribe my problem: when I try to 'Like' my custom made activity, on either a multiple activity page or on a single activity page, It results an unwanted "Like's post" values, as shown in the attached image.
These are the unwanted values for 'Activity Like':
1. The title is always set to the string 'Members'.
2. The image is always set to the poster's profile picture.
3. The content is the post content (which in my case, is string that requires decoding )
The only place I found in the code that calls apply_filters with "wdfb-opengraph-description" is class_wdfb_public_pages.php::inject_opengraph_info(). I have printed the value of $description in that function and I got 3 different kinds of output:
1. The description is empty
2. The description contains the Theme's 'Tagline' property string (the one I defined in the customize.php of buddypress social theme)
3. Only on single activity pages - I actually get the unwanted undecoded content.
My desired functionality is: to be able to set the title, content and image of each 'LIKE' post individually - whether on a single or multiple activity page.
I am not yet familiar with how these opengraph property work, but my guess is that you are setting them for each individual activity 'Like' button when the page is being created, each with a unique value according to the unique activity it represents. And, when a user presses the like button - those 'already set' tags are being sent to Facebook. If indeed this is the case, will it be possible to have a filter that gets an associative array of the open graph key=>value pairs that I can modify? This way I can set my own title, content, link and image according to its activity.
Roei
Member (joined May 2012) Likes (0)
Any updates on this?
Developer (joined April 2011) Likes (0)
Hello,
There are, in fact, filters for each of the values you want changed (title, link and description) - those are triggered each time the plugin attempts to output an OpenGraph info bit, so you'll have to add a bit of logic to decide which outputs you do wish to overwrite, and which ones you want to pass through.
For the "title" attribute, the filter is named "wdfb-opengraph-title". The processing function hooked to this filter will accept (and is expected to return) a single string, which will be used as your title. The "description" attribute filter is named "wdfb-opengraph-description", and works just like the title one.
As for the image hooks, there are several filters but the most important one is the "wdfb-opengraph-image" - this is the global image filter, which gets called always. The function bound to this hook will accept, and should return a single string, which is an URL to your OpenGraph image.
Member (joined May 2012) Likes (0)
Hi @Vladislav
I did a test, and hooked to "wdfb-opengraph-title", returning a constant string: 'A constant string'. The hooked function was called only once when loading the activity page, and resulted this meta node:
<meta property='og:title' content='A constant string' />The title of each Like button post was not changed (it still shows 'Members' for all the activities in the activity page).
This was not my intention. I will explain that again - I would like to have the ability of editing each individual "Like" button - so pressing each 'Like' of an activity will crate a post with a unique "title" and "Description". (So I expect this filter to be called once for each activity in the page).
Attached bellow is a snapshot of what I see now when pressing the 'Like' button of any activity (current.png), and another image with the desired behavior, where 2 different activities have different 'Title' and 'Description' (desired.png).
If you can please post a code snippet that implements that, I will be grateful.
Regards,
Roei.
Developer (joined April 2011) Likes (1)Liked by: 
Hello,
There's apparently some confusion with how OpenGraph works. OpenGraph is a set of meta tags that appear *once* in your page header. Meaning, OpenGraph tags appear *once per page*. Now, your like buttons on your activities page point to different URLs (pages), so the OpenGraph values will be harvested from the pages they link to, not from the page they appear on. Furthermore, while you work on this, you may also take into consideration the Facebook cache and reset the pages you like between changes.
Member (joined May 2012) Likes (0)
Member (joined May 2012) Likes (0)
Thank you @Vladislav,
This was the explanation I was looking for. Now I understand how the OG concept works. I have used the filters and accomplished the desired behavior.
By the way, the 'content' of the 'og:url' meta tags for a single activity, doesn't have a trailing '/':
<meta property='og:url' content='https://surf-space.com/members/rbahumi/activity/737' />When checking this url in the facebook debugger, is shows an "Error that must be fixed: Circular Redirect Path"
I found a solution on the web, that suggest adding a trailing slash to the url, and that solved the issue. Here is the added code:
Support Kangaroo (joined March 2011) Likes (0)
Greetings rbahumi,
Thank you for letting us know and happy to see that you have managed to resolve these issues.
Marking ticket as resolved.
Cheers, Joe
WordPress Questions?
We've got answers!
Find out more »