× Joomla Facebook Connect support forum

Topic-icon extended permission?

Active Subscriptions:

None
15 years 1 month ago #559 by playak
extended permission? was created by playak
I want to automatically post things to a users FB feed, but this is being rejected by FB because it requires extended permissions.is this possible with JFBC?
The topic has been locked.
Support Specialist
15 years 1 month ago #567 by alzander
Replied by alzander on topic extended permission?
Absolutely.

We are working on a tutorial for developing your own apps (we swear). Attached is a 'status update' file which should show you how to ask and check for permissions. It's not installable right now, but if you know how to build a module, you simply need to call this file from your mod_MODULENAME.php file like below. There's no helper or other code required:
require(JModuleHelper::getLayoutPath('mod_jfbcstatus'));

Please understand, this is not fully functioning or even thoroughly tested code!

A quick overview:
Line 16-20: Get the current user's name and status.
Line 27-43: Javascript function calls for setting the user's status.
Line 46+: Show the html for the status module. It consists of a form field and submit button. Also, we check to see if the user has the permission "status update" set already, if not, we show FB's 'grant permission' button.

Don't hesitate to ask more questions. The intent from the outset for JFBConnect was to allow other developers to extend and add functionality by creating their own modules (such as this). This will be our 'example' of how to do it. If you do create something great, we'd love for you to offer it to others!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #571 by playak
Replied by playak on topic extended permission?
thanks! unfortunately, i don't see an attachment in your post. or am i looking in all the wrong places?
The topic has been locked.
Support Specialist
15 years 1 month ago #575 by alzander
Replied by alzander on topic extended permission?
Sorry about that. This board doesn't allow attachments of PHP files (understandably). I renamed the extension to .txt, and this should work. Next time I'll try to read error messages better :)
The topic has been locked.