i have implemented facebook login app , want users profile picture, have done trying turn circle format using library - https://github.com/vinc3m1/roundedimageview
i having trouble implementing 2 , not sure best way go around it
here java
final roundedimageview profilepic = (roundedimageview) rootview.findviewbyid(r.id.myprofilepic); graphrequestasynctask request = graphrequest.newmerequest(accesstoken.getcurrentaccesstoken(), new graphrequest.graphjsonobjectcallback() { @override public void oncompleted(jsonobject user, graphresponse response) { if (user != null) { // set profile picture using facebook id profilepic.setprofileid(user.optstring("id")); } } }).executeasync(); and here xml
<com.makeramen.roundedimageview.roundedimageview android:id="@+id/myprofilepic" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margintop="40dp" android:layout_gravity="center_horizontal" android:padding="10dip" android:scaletype="center" app:riv_corner_radius="30dip" app:riv_border_width="3dip" app:riv_oval="false" app:riv_border_color="@color/material_white" /> i getting error
cannot resolve method 'setprofileid'
i think error because not returning proper bitmap in graph request, not sure how solve this.
looking @ roundedimageview source don't see method called setprofileid(). need make request facebook graph api url profile picture, , either hand view (if has such method), or download , pass bitmap.
Comments
Post a Comment