XBMC Community Forum
[RELEASE] Facebook-Media - Facebook Photo/Video Addon - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Picture Add-ons (/forumdisplay.php?fid=150)
+---- Thread: [RELEASE] Facebook-Media - Facebook Photo/Video Addon (/showthread.php?tid=82500)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


- cloudjacker - 2011-01-22 10:11

three problems:

1. one time the plugin asked me to log in and popped up the web browser script, logging in through that browser didn't seem to do anything... so then I right clicked and logged in through the addon settings. Not exactly sure which ones did what.

2. can't change accounts. I can't change which facebook account is logged in for the life of me. It shows the new account in the login settings, but it shows images and friends from the old account when running.

3. I noticed this when trying to fix problem 2, the passwords from the addon settings are stored in play text. Sad


- ruuk - 2011-01-22 21:14

First, thanks for pointing out the openSettings() problem. I actually needed to change it to self.settings().openSettings(), but in any case it will be in the next update. Now I'll try to address all the other problems you found for me Smile

cloudjacker Wrote:three problems:

1. one time the plugin asked me to log in and popped up the web browser script, logging in through that browser didn't seem to do anything... so then I right clicked and logged in through the addon settings. Not exactly sure which ones did what.
The Web Browser pops up either because you need to allow the Addon for that facebook account, or because for some reason the addon fails to access something and thinks you need to. The user and password settings are there because sometimes the addon needs to login to access things.
Quote:2. can't change accounts. I can't change which facebook account is logged in for the life of me. It shows the new account in the login settings, but it shows images and friends from the old account when running.
That's something I should fix. I've never had the occasion to log in a different account. As I said for #1 the login settings are just for if the Addon needs to login. Once the addon gets a token, it doesn't even need your username unless that token becomes invalid. For a quick fix, I believe if you delete the token file at addon_data/plugin.image.facebook/token you will be able to access the other account. I guess I'm just going to have to break down and add multiple account handling.
Quote:3. I noticed this when trying to fix problem 2, the passwords from the addon settings are stored in play text. Sad
Maybe one day I'll do something about that, but it's not a big priority to me. If someone has enough technical savvy to hack into my media player, they will have absolutely no problem figuring out the method to de-obfuscate the password since the python code to do it is in plain text as well. The only (relatively) safe way to save a password is to have it encrypted with some sort of key, which negates the advantage of saving it in the first place. I guess I could add an option to have it ask for the password when needed though.


- cloudjacker - 2011-01-24 01:46

ruuk Wrote:Maybe one day I'll do something about that, but it's not a big priority to me. If someone has enough technical savvy to hack into my media player, they will have absolutely no problem figuring out the method to de-obfuscate the password since the python code to do it is in plain text as well. The only (relatively) safe way to save a password is to have it encrypted with some sort of key, which negates the advantage of saving it in the first place. I guess I could add an option to have it ask for the password when needed though.

lol true, lets just say "cloudjacker" wasn't a completely random screenname lol.


One feature I'm thinking of would be showing thumbnails of the friend's faces/profile pictures instead of a folder in thumbnail mode. Can that be done without XBMC blowing up? Maybe a simple python-tastic forloop that just associates names with profile pictures.


- cloudjacker - 2011-02-14 02:41

now you have a user that wishes his wife could log on as a second user

http://forum.xbmc.org/showthread.php?tid=94067


I am interested in re-working the authorization. Is there anyway to create the bare essentials of the browser into a pop-up window to authorize the app?

secondly, where does the Authorization window come from? the one that says "please sign in and authorize the add-on and then re-start the plugin"


- ruuk - 2011-02-14 03:41

cloudjacker Wrote:now you have a user that wishes his wife could log on as a second user

http://forum.xbmc.org/showthread.php?tid=94067


I am interested in re-working the authorization. Is there anyway to create the bare essentials of the browser into a pop-up window to authorize the app?

secondly, where does the Authorization window come from? the one that says "please sign in and authorize the add-on and then re-start the plugin"

I plan to get around to adding multi-user capability. I've been busy... life has been happening around my house in a large way recently.

I'm sure it would be possible to simplify the authorization, but the reason it works as it does is because I was making an attempt to not violate the facebook 'Terms Of Use', and also this way is more 'future change' proof (by that I mean that changes in the page format won't keep it from working)

As to the second question, it's a dialog at the bottom of the script:

xbmcgui.Dialog().ok(__language__(30111),__language__(30112),__language__(30113),​__language__(30114))

The __language__ calls do a great job of obfuscating what is going on. If only the dumb-ass programmer wasn't so lazy with his code commenting... oh wait I'm the dumb-ass programmer. Smile


Version 0.9.8 - ruuk - 2011-03-03 00:04

Finally added multi-user support. I'd like some people to test this before I add it to the repo and let me know how it goes. I've also added auto-login to the authorization process. If you want to try/test that, install the WebViewer update from the second link below first.

Get it here:

http://facebookphotos-xbmc.googlecode.com/files/plugin.image.facebook-0.9.8.zip

If during new user authorization you want auto-login to work, please install this webviewer update before using:

http://webviewer-xbmc.googlecode.com/files/script.web.viewer-0.7.8.zip


- Grisu - 2011-04-07 11:42

When I want to add a user, I get the following error:
ERRNO SOCKET ERROR (10061, connection refused)

OS: windows 7 x64


- ruuk - 2011-04-10 20:10

Grisu Wrote:When I want to add a user, I get the following error:
ERRNO SOCKET ERROR (10061, connection refused)

OS: windows 7 x64

I need the log file with the error, or I can't tell what is causing that error. Though at first glance, a connection refused error doesn't seem like something caused by the script.

Use the link below if you need help to find your log file.

http://wiki.xbmc.org/index.php?title=Log_File


- speed32219 - 2011-04-11 06:56

ruuk Wrote:Finally added multi-user support. I'd like some people to test this before I add it to the repo and let me know how it goes. I've also added auto-login to the authorization process. If you want to try/test that, install the WebViewer update from the second link below first.

Both work great, fresh install of the plugins (Facebook/Webviewer) using ubuntu mav 2.6.35-28-generic and the latest 10.1 xbmc. Created two user accounts, worked great, no issues.

Now if only I could see messages posted as well as respond to them.Rolleyes


- ruuk - 2011-04-11 21:18

speed32219 Wrote:Both work great, fresh install of the plugins (Facebook/Webviewer) using ubuntu mav 2.6.35-28-generic and the latest 10.1 xbmc. Created two user accounts, worked great, no issues.

Now if only I could see messages posted as well as respond to them.Rolleyes

Thanks for letting me know. I can't believe it took 5 weeks for someone to do so Smile

I will in the near future have a new non-plugin facebook addon. I already have it working for Boxee. I have a Boxee Box in my media room and wanted to access facebook media from it, and there wasn't an app yet. The app currently allows you to view comments, and I will be adding the ability to post comments as well soon.

It shouldn't take too long to do the XBMC version. Most of the hard work has already been done with the Boxee version.

If anyone uses Boxee and wants to try it out, my Boxee repository is located at:

http://2ndmind.com/boxee