I downloaded and enabled:

Statuses,
Statuses Flags,
Statuses Comments Flag Integration and
Facebook-style Micropublisher

I wish to use the "like_comments" flag provided by fbss_comments_flag (Statuses Comments Flag Integration) in the Statuses Stream for each User Profile.

From the configuration for Flags located at /admin/structure/flags, update code is provided from API 2 to 3 for fbss_comments_flag_flag_default_flags() found in fbss_comments_flag.module.

After updating the code, clearing the cache and reloading /admin/structure/flags, the OPERATIONS for like_comments now lists a link to "enable", but clicking this link results in the following message:

"The module providing this flag wasn't found, or this flag type, fbss_comment, isn't valid."

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

adventurist created an issue. See original summary.

logicp’s picture

I solved this by declaring an entity type and controller for statuses as well as fbss_comments. Everything works great now!

If someone needs help, please bug me and I'll get around to outlining the process in more detail.

ugintl’s picture

@adventurist can you please tell in more detail. I having the same problem with like and like comment

logicp’s picture

Pardon the delay, I didn't see your message until now. Are you still looking for a solution? I will look at my code and make a patch. Please stay tuned.

logicp’s picture

Here's what I added to the 1.0-beta2 release of Statuses in order to get the like functionality to work. Be forewarned, there is some placeholder content and the code can likely be cleaned up a bit, but I've been using it in a development project just fine without any issues.

logicp’s picture

Here is a patch for the submodules: fbss_comments and fbss_flag.

Once again, I apologize for the messy code. I didn't have any time to clean it up, but I can attest to the fact that it's working well within one of my projects.

logicp’s picture

Status: Active » Needs review

I'm not seeing an option for beta in the Version, so I've listed it as dev. I'll have to actually try it against the dev version to see if it works there. Will do this later, unless someone else does it first (by all means, please do this!)

Thanks everyone.

ugintl’s picture

I did not receive any email notification for your comments. So i have to apply both #5 and #6?

ugintl’s picture

After having problem with flag 3. I am using statuses dev and flag 2. Everything working perfectly, but no events are showing in rules as to when a user likes a statuses update.

Note: This is not related to your patch. Just shared my experience.

ugintl’s picture

I will try your patch, will let you know

ugintl’s picture

I tried to apply patch through git, but it says
error: patch failed: statuses.module:134
error: statuses.module: patch does not apply

ugintl’s picture

ugintl’s picture

ugintl’s picture

I removed line 6 & 7 in patch and added a } on line 20. By doing this 2 errors are gone, but still getting error. Someone needs to look at this patch please