I want to check whether the user has give publish_stream permission to my application or not. If not want to get publish_stream permission.
if you are using the Koala Gem just use:
#check wether wallpost is allowed
permissions = graph.get_connections('me','permissions')
@has_wallpost_permission = permissions.select{|o| o['permission'] == 'manage_pages'}.length == 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With