Wedge
Public area => The Pub => Plugins => Topic started by: Dragooon on March 23rd, 2012, 08:22 AM
-
Because there had to be one, fairly basic plugin for Wedge. Aims at providing simple integration with Facebook.
Current features:
- Facebook logging in and quick registering
- Real time callback updates of name and birthdate
- Publishing new topics to wall
- Publishing new thoughts to wall
- Posting new status updates as thoughts
Requires a simplistic setup which will not take more than 5 minutes, instructions will be posted once it's released.
Screenshots attached.
-
Wow, simply wow.
-
Thanks :D
-
That is fantastic. Nice work :cool:
-
I never got around to implementing reposting of thoughts to Twitter (which was, I'm a bit ashamed, my original plan :P), so it's good that someone at least considers reposting them automatically to Facebook :)
-
Really, wow!! My compliments!! :cool: :cool: :cool:
-
Great!
The only thing left is to implement the like button.
-
Great!
The only thing left is to implement the like button.
Reusing the Wedge feature would be good.
With a profile setting to disable communication with FB if one doesn't want to share likes over there? Or maybe a per-post choice.
And making sure not to share the like if done on a non-public topic.
-
I need a hook for that :P
-
Like/unlike has a hook... :whistle:
-
Like/unlike has a hook... :whistle:
That's for external likes(Which I know nothing about). There's no hook when a message gets liked.
-
Ah, I see.
That shouldn't be a problem to add :)
-
That's the joy/curse of a plugin system. We'll have to add plenty of hooks to accomodate for plugins. But as long as the request is understandable, we'll do it Ouiz pléjeuh.
-
Quote from Nao link=msg=276121we'll do it Ouiz pléjeuh.
ahahah
-
Which reminds me. Watch this video(http://www.youtube.com/watch?v=Zp1BYzIVi0U#ws), specifically the bit I'm thinking of is 3:58 onwards :D
-
Which reminds me. Watch this video(http://www.youtube.com/watch?v=Zp1BYzIVi0U#ws), specifically the bit I'm thinking of is 3:58 onwards :D
Fantastic
-
0.o awesome!
-
Fantastic work Dragoon!
-
Hey Dragoon that looks really professional and tidy :cool:
-
It hasn't been explicitly stated but I'll reiterate the point here that should surprise some of you.
There are precisely zero files here. The plugin system does not permit file edits in any fashion, this is all handled between a combination of the plugin hooks and the template skeleton system.
-
This is the way it's meant to be. :)
Can't wait to change to wedge. So i never have to fear about updates because of Mods that are nested in sourcecode.
Great stuff
-
Thought SA's mod would be ported to Wedge eventually but dragooon already caught up.
-
Is SA even here?
-
Nope.
-
And even if he was, and if he wanted to port his mod, most likely it would be after Wedge is declared stable.
-
And even if he was, and if he wanted to port his mod, most likely it would be after Wedge is declared stable.
That's not the point, there was a time he heard about Wedge months ago where we talked about FB plugin for Wedge. But it is already done, a official one.
-
Dragooon's mod is not an official Wedge mod for now but once it's ready for use I'm perfectly willing to push it as such. Heck, all of our consultants are gifted authors who do great justice to the Wedge spirit. :)
-
/like msg276275
-
Honestly, I suck at providing support and updates for my plugins and mods, so I try and make it fairly feature complete at first so that I don't have to do much to maintain it. For the same reason I'm afraid of it being an official plugin, not that I mind it being one.
-
Honestly, I suck at providing support and updates for my plugins and mods, so I try and make it fairly feature complete at first so that I don't have to do much to maintain it. For the same reason I'm afraid of it being an official plugin, not that I mind it being one.
Official = the team maintains and supports it ;)
If you want, of course!
I think I did a good job of maintaining and supporting your SMF Media Gallery ;)
-
Honestly, I suck at providing support and updates for my plugins and mods, so I try and make it fairly feature complete at first so that I don't have to do much to maintain it. For the same reason I'm afraid of it being an official plugin, not that I mind it being one.
Official = the team maintains and supports it ;)
If you want, of course!
I think I did a good job of maintaining and supporting your SMF Media Gallery ;)
Hey, I did stuff too :P....
Ofcourse, I'd love that.
-
Dragooon, I completely understand your position; this is pretty much the same stance I take - if I build it well enough it should stand alone without needing much support later on :)
-
Did a very quick test run of this on current trunk and it seems to work fine without any changes (which is very surprising and awesome BTW). Uploaded to AeMe, but it CAN and probably WILL crash and burn. Hopefully it doesn't :P
-
/mewonders if this thing still works with Wedge.
-
Am I supposed to install it and try to break the site, or something..? ;)
-
Am I supposed to install it and try to break the site, or something..? ;)
Hehe, nope. I'll test it in a few days and see if it needs some fixing.
-
Lol... I totally forgot about this topic. I saw it in the 'Top liked topics' stat area. (There's a post of mine in area that got liked a lot.)
The repo is actually public:
https://github.com/Dragooon/WeFB
It's just that it hasn't been updated in 2 years, meaning it's not compatible with Wedge right now, because of all the code changes.
I'll just it a try ASAP, though. Once I get it working, I'll move it to the plugins repo.
Everyone happy with that? ;)
-
:)
-
It's progressing. The plugin is now installed as a test on my local forum, but it's not showing anything yet. Still, installing it wasn't straightforward, so first step is done.
-
Okay, managed to go through the login process after fixing many problems...
So, just go to say:
- It's awfully slow on the Facebook side. I don't know why. It took like 10 seconds to load...
- Facebook asks you for permissions, one by one. How stupid is that..!
- If I refuse a permission, I'm still logged in, but the plugin doesn't say anything special.
- And now for the most amusing thing... Once I'm logged in, I'm faced with a special plugin page that tells me my name, fills in the user name (from Facebook), offers me to change it and, wait for it... Enter a password. Then verify it. And if I don't enter a password, I'm sent back to the password page.
Meaning this process:
- Actually takes a lot longer than a regular registration process,
- Completely bypasses the Registration agreement (it's okay if you're already a user of course, but... On the first registration..?!)
- Doesn't save you from choosing a password. I don't know why this is of any use. Security this, security that... What's the point? An admin is never going to login via Facebook anyway... And who says it isn't a safe process?
All in all, I'm quite disappointed.
I'll commit the plugin, and enable it here for 'testing', but I don't have much hope in it until it gets improved, namely:
- showing the registration agreement, at least on the page that asks for a password,
- not making a password mandatory,
- telling you what Wedge can do if you refused some permissions,
- allowing you to choose your permissions from the start (not sure..?),
- adding a Facebook profile link somewhere in your profile,
- getting more data from Facebook if possible, such as website link..?
- allowing you to get your list of friends, and see who's already there.
Phew...
Shitiz, you still there? :P
-
:-/
My current hostel's internet is poor but I will test what I can later this week.
We don't have a user agreement so that's no problem :)
-
I just installed it and when activated I get this:
httpp://mydomain.com/index.php?action=admin;area=plugins
2: Invalid argument supplied for foreach()
File: /home/username/public_html/mydomain/gz/app/Subs-Plugins.php
Line: 828
That path... gz/app/
Should be core/app surely? :hmm:
-
No, it's gz/app. Don't worry about that. It's the cache.
And yes, this error exists because of an old Pete bug in plugins. I think I pushed that commit to the repo this afternoon, so you just need to update it.
It might not work entirely though, because I left a file aside until my next push (ManagePlugins.php has the same bugs as Subs-Plugins.php). I'm going to test my new GitHub plugin, see, and I want to have something to commit to be sure... :P
-
I believe it was the latest version but I'll wait it out for a working version. Thanks :)
-
It was definitely pushed this afternoon. ;)
The last push (from a couple minutes ago) fixes the same bug in the plugin homepage. Should be all good, now. Keep me posted.
I'm late for bed by over an hour... Sleepy time is important. It keeps Nao in shape for the next day of work.
-
It was the afternoon when I downloaded/installed/tested it (not that it's important now).
But, I've just downloaded the latest version and get the exact same errors when activating the plugin?
-
Well, I'm not... At any rate, try to 'Purge cache' in your admin menu. Make sure Subs-Plugins.php and ManagePlugins.php are both replaced in /core/app, too.
This error message shouldn't prevent you from using the plugin I believe, it's just a silly typo from Pete back in the day, in the code that checks whether some required functions are present.
-
Question: If I "login with Facebook" it will create a new user. Can this plugin (or Wedge) associate the Facebook account with a current user?
-
No, I don't think it can. But as I said, this plugin is a bit underwhelming in practice. It needs to be tweaked to allow for password-less accounts, and skip the permission requests on Facebook itself. Associating with an existing account would make sense, too.
Unfortunately, my priority isn't on Facebook bridges. This plugin is here for that, but someone else will have to improve it (@Dragooon doesn't seem to want to do it..?), or I'll deal with it... In a few months, I guess, when the rest of Wedge no longer needs work.
-
Yeah accounts liking would be good. Of course not a priority though
-
I appreciate Wedge needs to come first but when anybody can look at this plugin I believe account synchronisation is essential. Why would an existing user with many posts want to re-register as a 'facebook' user? They would then have two different accounts for one member :-/
-
Go to Profile -> Facebook and link your account there.
-
Thank you Dragooon! That works exactly as expected/required :cool:
-
Yay! Dragooon is out of lurk mode! Welcome back!
-
There's an error when login with facebook.
CLick on Cancel and you'll get the following:
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in /wedge/plugins/facebook/base_facebook.php on line 1032
-
Yay! Dragooon is out of lurk mode! Welcome back!
Thanks, college and job has kept me busy but I do read and lurk around here often.There's an error when login with facebook.
CLick on Cancel and you'll get the following:
Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in /wedge/plugins/facebook/base_facebook.php on line 1032
Does it happen on new or existing account? Is the account auth'd recently or was sync'd with facebook a while back?
-
Strange...
now if you clicking on "Login with facebook" you'll get redirected correctly.
Right before it's just displayed as a popup.
It's all OK now.
-
Yay! Dragooon is out of lurk mode! Welcome back!
Thanks, college and job has kept me busy but I do read and lurk around here often.
I know; I never bothered you with that, knew you were busy IRL.
:)
-
Strange...
now if you clicking on "Login with facebook" you'll get redirected correctly.
Right before it's just displayed as a popup.
It's all OK now.
It's probably a Facebook bug.
See a similar report...
http://stackoverflow.com/questions/13744673/facebook-php-sdk-misbehaving-after-december-12-updates
Or, maybe the file needs to be updated with the latest SDK version, I don't know.
Didn't have that bug myself.
-
Associating with an existing account would make sense, too.
OK then, I guess it is not yet possible, I was trying very hard to find how to do this on my beta forum :^^;:
-
Didn't we we establish earlier that it was indeed possible..? By visiting the Facebook link on your profile menu.
-
Didn't we we establish earlier that it was indeed possible..? By visiting the Facebook link on your profile menu.
I see the Facebook link under Profile in Wedge.org but not in my forum unfortunately.
When I try to cheat by modifying my URL with http://beta.potesnroll.com/do/profile/?area=facebook it still wont appear, dont know why.
My log says Unable to load the "(Wedge:Facebook) plugin.french" language file.
while I'm using the forum in English.
-
Did you enable this plugin in admin?
-
Did you enable this plugin in admin?
Yes and it seems to work for new members though I cant test it completely because I only have one Facebook account and dont want to link it to a test account ^^
Edit : it seems that my plugins are in French and the reste of the forum in English.
Perhaps I should add the French language to the forum.
Edit 2 : Well, I added French, chose it from the menu but the forum language wont change. I'll try again tomorrow.
-
Don't forget to click Admin > Purge cache (Effacer le cache), from time to time...
I'm not sure what's wrong, though. I don't think there's a toggle to check, apart from the actual plugin enabler.
PS : ehhh, j'ai reçu une relance de la BNF... Wouhou... -_-
-
Don't forget to click Admin > Purge cache (Effacer le cache), from time to time...
I'm not sure what's wrong, though. I don't think there's a toggle to check, apart from the actual plugin enabler.
I did not forget to click it, nothing changed.PS : ehhh, j'ai reçu une relance de la BNF... Wouhou... -_-
J'ai un recommandé à aller chercher, je suppose que c'est lié...
-
I tried to deactivate then reactivate the Facebook plugin. Still the same, no Facebook entry under profile (in French and English)
Nothing more in the error log.
Nothing in the Apache error log.
And the Apache access log has nothing of interest :
217.174.xxx.yyy - - [09/Apr/2014:15:40:33 +0200] "GET /do/profile/?area=facebook HTTP/1.1" 200 6509 "http://wedge.org/pub/plugins/7274/plugin-facebook-for-wedge/msg295430/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
217.174.xxx.yyy - - [09/Apr/2014:15:40:34 +0200] "GET /gz/css/Wilde/firefox29-admin-869713.css.gz HTTP/1.1" 200 25201 "http://beta.potesnroll.com/do/profile/?area=facebook" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
217.174.xxx.yyy - - [09/Apr/2014:15:40:34 +0200] "GET /gz/css/Wilde-mana/firefox29-869713.css.gz HTTP/1.1" 200 5855 "http://beta.potesnroll.com/do/profile/?area=facebook" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
217.174.xxx.yyy - - [09/Apr/2014:15:40:34 +0200] "GET /gz/js/profile-m-869713.js.gz HTTP/1.1" 304 - "http://beta.potesnroll.com/do/profile/?area=facebook" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0"
-
Gentlemen
@Dragooon, @Pandos, @Nao
does this facebook plugin work with FB API 2?
I am trying wedge to check features and if I have my key required features (core or via plugin) to choose this over SMF. I created an FB App. When I try to login using FB ID, it takes me past the FB login but returns a blank page instead of coming back to the forum. Also, even if I come back to the forum by typing the URL, I am not logged in.
Please suggest...
-
I never managed to get this plugin to work on my forum. However it seems to work perfectly on Wedge.org, I always logon with the Facebook button. Don't know...
-
@kian
In exactly same situation as you are. Hope some good guys an show us the way out.
-
I'm having the same problem.
http://elektronark.org/do/admin/?area=facebook
Apply Filter: Only show the errors with the same message "(Wedge:Facebook) plugin.turkish" dil dosyası yüklenemiyor.