views:

93

answers:

2

Hi i'm doing a fb app that update the status box(what's in your mind), i'm using set_status from facebooker .. first i have this error:

set_status needs extended permission

so i google it and find this: before_filter :ensure_has_status_update .. so i put it in my controller and that solves the problem, but when i try to update the status, all ways redirect me to a fb page that says: You have already granted permissions to this application. so i go to the controller comment before_filter :ensure_has_status_update and then go to my app again and it works..

so i want to do this

if (has_status_update == false)
ask for permision
else
update the status

i google it for a long time but i can't find an answer..

A: 

solved!!! yeah!!

melimoreno
A: 

has the same problem.can you say to me like you that made

ok here is my code. at this moment i have it in the view, but i'm working to make the same in the controller.. so i you make it tell me please.. <% if facebook_session.user.has_permission?('status_update') %> <%=facebook_session.user.set_status(' prueba 2 .....')%> <% else %> <fb:prompt-permission perms="status_update"> Grant permission Set Status?</fb:prompt-permission> <% end %>
melimoreno