ianlee-dev / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

method to set permission fails. #178

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create client: IFacebookRestClient client = new
FacebookXmlRestClient(apiKey, secretKey, sessionKey);
2.  Create permissions        
            client.auth_getSession(authToken);
            Set st= new HashSet();
            st.add(FacebookMethod.SMS_SEND_MESSAGE);
            st.add(FacebookMethod.SMS_CAN_SEND);
            st.add(FacebookMethod.NOTIFICATIONS_SEND);

3. call client.permissions_grantApiAccess(apiKey, st)

What is the expected output? What do you see instead? Expected output is
success. But I get FacebookException.
com.google.code.facebookapi.FacebookException: Invalid parameter

What version of the product are you using? On what operating system?
facebook-java-api 2.1 on sun solaris

Please provide any additional information below.
I am able to successfully send email using the same client object.

Original issue reported on code.google.com by harisha...@gmail.com on 9 Mar 2009 at 4:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It was a non issue. After user granted permissions to the application, no 
exceptions
were thrown. This issue can be closed.

Original comment by harisha...@gmail.com on 10 Mar 2009 at 4:15

GoogleCodeExporter commented 8 years ago

Original comment by david.j....@googlemail.com on 11 Mar 2009 at 5:51