[GSoC 2016: Social API] Week 4: First widget!

gvso's picture

Date of publication: 06/20/2016
Source: GVSO Blog

The Social API project is divided into four different modules. One of them is Social Widgets (social_widgets), which covers widgets (sometimes called plugins but for the Social API plugins refers to something else) such as buttons (like, tweet, share, etc.), embedded content (post, videos, tweets, etc.), among other things.

So since my last entry about the progress done with the Social API project, I have been working on adapting the functionality of Facebook Like Button (fblikebutton) to work with the Social API and Social Widgets.

The initial point was to declare a module called Facebook Buttons (facebook_buttons) as an integration of Social Widgets, so the module will be listed in the configuration environment of the Social API. To declare a module as an integration of Social Widgets, a Network Plugin must be declared similar to the following.

Integration List

As of current, the Facebook Buttons module is available on Drupal Social Initiative's github: https://github.com/drupalsocialinitiative/facebook_buttons. The idea is that this module implements all the buttons Facebook provides (like, share, send). Currently, it only allows to add Like buttons to teasers and nodes with specific content types.

Like settings form

Simple Facebook Connect

During this time, my mentors and I were writing some e-mails with Markus Sipilä (@masipila). Markus is the maintainer of Simple Facebook Connect module. We are setting a meeting in the following days to discuss the possibility of having an official version working with the Social API and Social Auth projects. It is worth to mention, I have already been working on an unofficial version of simple_fb_connect which works with the Social API

Next week

In our last weekly meeting we talk about testing the abstraction of the project, so we can make sure the current implementation will work with most (if not all) social networking service. Therefore, for next week I will be working on another implementor of the Social Auth and Social API. We chose to work with Google services because we thought most people already have a Google account, so this might get more sites to implement the Social Initiative's projects.

As always, feel free to contact me if you have any question. You can also collaborate with the Social Initiative projects (social_apisocial_authsocial_post, and social_widgets). We also have our weekly meetings, so follow the Social Initiative and join us on Fridays.

Stay tuned for the next weekly summary!

AttachmentSize
integrations.png17.33 KB
like_settings.png24.12 KB

Drupal Social Initiative

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week