facebook / facebook-java-business-sdk

Java SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
402 stars 332 forks source link

Want to fetch business user email Id using JAVA SDK #311

Closed VishwaShah16 closed 3 years ago

VishwaShah16 commented 4 years ago

Which SDK version are you using?

7.0.1

What's the issue?

I want to fetch details of businness users, like email Id, However not able to fetch it as it is returning only default parameters, not the email address. Which API call should I use. Please note that we have advanced level email permission available with us.

Steps/Sample code to reproduce the issue

new BusinessUser({business User Id}, context).get().requestAllFields().execute(); I can fetch details when I provide my own business user ID, but not when wanted to fetch other business User Id

Observed Results:

com.facebook.ads.sdk.APIException$FailedRequestException: {"error":{"message":"Unsupported get request. Object with ID '698479497715849' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https:\/\/developers.facebook.com\/docs\/graph-api","type":"GraphMethodException","code":100,"error_subcode":33,"fbtrace_id":"AVC3Nu1l63jSFWW365nqv4D"}} at com.facebook.ads.sdk.APIRequest.readResponse(APIRequest.java:307)

Expected Results:

Should be able to fetch business user details (email) when I do provide business user ID

stale[bot] commented 3 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.