Forum is closed

extended permission?

extended permission?

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?

playak
Jeroen
useravatar
Offline
60 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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!

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24065 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: extended permission?

thanks! unfortunately, i don't see an attachment in your post. or am i looking in all the wrong places?

playak
Jeroen
useravatar
Offline
60 Posts
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: 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 current/smile

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24065 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11641
Total Polls:
0
Total Posts:
48907
Posts today:
13
User Info
 
Total Users:
47750
Newest User:
catalinioan
Members Online:
1
Guests Online:
644

Online: 
theresa4sixsuit
Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program