Open Nicholas-Cardot opened 6 years ago
Can we please have a list of specifications for the widget, describing the scope and limitations?
@ckmahoney here you go:
anything else you need?
For the ideal click solution that you mentioned, I'm not even sure how to accomplish that without using native follow buttons from the various networks, in which case we would be loading tons of external JS and stuff like that.
For follow counts, we'll need to implement oAuth for most of the networks, which is something we definitely want to do, but probably won't roll out in version 1.0. That will probably be a high priority follow up feature.
Additionally, we'll need a toggle on the widget options that allow the user to select which style they want the buttons. On the XD, we have boxes, buttons, and big buttons, for example. And more could very easily be added later.
@Nicholas-Cardot is correct, I agree with him regarding the preferred click scenario. We would need to load one script per service. We can do this, but it does not seem like a very good idea, particularly since the follow buttons would not work until its script has loaded in most cases.
(One consideration is for us to manually go to each of the script sources and just put them all together in a single file. We would be stuck at the version of script at the time of capture, but I don't see why this wouldn't work.)
The upside to loading the external script is counts may be provided in doing so. Else we're looking at doing a similar kind of request that the share buttons do.
For now though I entirely agree that just opening a new window to the "follow" or "like" page is suitable.
The other consideration, as an alternative to loading each network's script, is to use each networks API and send a POST request to the network via javascript. This would require a lot more hands on development, if the API exists for a network to add a follower. It also requires that the visitor be logged into the service (which is the same condition the share buttons already require).
Notes on Facebook integration:
The /subscribers
(followers) is no longer supported in the current v3 API provided by Facebook.
You can access object data at
Where [item-id] is the unique ID created by facebook for the user/profile/page/event/whatever. This ID is easy to get for pages, but not easy for people.
For pages, go to the About section and copy the ID.
For people, go to the source code and search for user_id
.
For example, my own account ID is 1256231707.
Unfortunately, visiting https://graph.facebook.com/v3.2/1256231707
requires an oAuth key.
The goal on these is that they just link to the person's profile. So for me, it's just facebooks.com/NicholasCardot
https://xd.adobe.com/spec/bb6c1809-3bcc-40ef-7e4d-f11e1b289596-cd5d/