Hi,
I am using django-facebookconnect which worked as expected until I had
to add extended permissions. I thought this would be a simple enough
task but it is proving not to be at all. Basically I have made just a
few small edits to the code in facebookconnect/templates/js.html and
in facebookconnect/templatetags/facebook_tags.py
I added the following to the templatetags
@register.simple_tag
def extended_permissions():
if hasattr(settings,'FACEBOOK_EXTENDED_PERMISSIONS'):
return """, {permsToRequestOnConnect: "%s"}""" %
','.join(settings.FACEBOOK_EXTENDED_PERMISSIONS)
return ''
and in the js.html I added {%load facebook_tags %} to the top and
replaced the init call with:
FB_RequireFeatures(["XFBML"], function() {
FB.Facebook.init("{{ facebook_api_key }}", "{% url
facebook_xd_receiver %}"{%extended_permissions%});
});
This works as expect as far as requesting the extended permissions but
breaks the popup functionality. Before adding that code when a user
accepted the request from the application the popup was closed and the
main browser windows was redirected to /facebook/setup. After the
edits the user is directed to the main url for the application inside
the popup window and they manually have to click on the facebook login
image to be redirected to the facebook setup page.
Anyone familiar enough with the code based to give any suggestions as
to what could be causing this?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.