1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not Planned Abstract The External Sites Options

Discussion in 'Closed Suggestions' started by Brandon_R, Jul 29, 2010.

  1. Brandon_R

    Brandon_R Guest

    Instead of concretely implementing things like facebook login, fb like etc why not abstract the system allowing admins to add tweet me, digg this etc and twitter connect, open id etc.
  2. Mike

    Mike XenForo Developer Staff Member

    It's not really possible to write it generically. To do something like FB login, you have to write code to call their APIs and handle the data they give back. It may be using OAuth2, but when calling the social graph, that's a Facebook-specific format.

    There is a system in the code that might help, but for the most part you have to just deal with the API you want at the time.
  3. Mert Y

    Mert Y Member

    Will there be OpenID support?
  4. Brandon_R

    Brandon_R Guest

    If im not mistaken, couldn't you write individual classes [all extending the parent class] for each external site with the same function $externalSite->authenticate(); And drop it in the package Kinda like how a database is abstracted like mysql, mssql etc with the same function $db->execute(); to run a sql command?
  5. Floris

    Floris Guest

    FB Connect is one, OpenID and others might be added later. I've read that somewhere (just searched, couldn't find the particular post).
  6. chousho

    chousho Well-Known Member

    I would definitely love to see support/a plugin for OpenID. I've been looking at implementing it, and have found a few handy links (which I'm sure you guys have looked at already):
    http://wordpress.org/extend/plugins/openid/ (Wordpress plugin)

    Facebook/Twitter would be nice to add, as well. I've heard, however, that Facebook is known to change their API around somewhat frequently. So that may pose the hurdle of them all.

    However, OpenID support--official or plugin--would be a dream!

Share This Page