ianlee-dev / facebook-java-api

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

setProfileMain, setMobileFbml missing #93

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

http://groups.google.com/group/facebook-java/browse_thread/thread/1ea62a304896a3
a9/4919ee626b714726?show_docid=4919ee626b714726

Hello all,
I apologize if I am just missing something. In IFacebookRestClient<?>
there does not seem to be a way to call the profile_setFBML() method
within the underlying implementations which allow for profileMain to
be set. I have been searching the forums and the code for possible
oversights on my part, but I have come up empty. I end up having to
type cast to a concrete implementation. This destroys the ability to
inject a dummy or test implementation of the interface for times when
connectivity to the outside world are not available.

In conjunction with that request, would it be possible to add method
similar to the others like profile_setProfileFBML(),
profile_setMobileFBML() etc to the high level interface as well.
Something simple like profile_setProfileMainFBML() should suffice.

Please let me know if I am missing something or if this request could
be fulfilled. 

Original issue reported on code.google.com by fern...@gmail.com on 28 Aug 2008 at 5:35

GoogleCodeExporter commented 8 years ago
+1 from me, this is affecting my migration project.  While fixing this bug, you 
may
want to deprecate the "profile_action" arg and its related profile_setFBML() 
methods,
since it is now deprecated in the new Facebook API.

Original comment by polarys@gmail.com on 16 Sep 2008 at 10:47

GoogleCodeExporter commented 8 years ago
The following method is already implemented in FacebookRestClient.java and
ExtensibleClient.java, it just needs to be added to IFacebookRestClient.java so 
it is
accessible from user code:

public boolean profile_setFBML( Long userId, String profileFbml, String 
actionFbml,
String mobileFbml, String profileMain ) throws FacebookException, IOException;

Original comment by polarys@gmail.com on 23 Sep 2008 at 4:19

GoogleCodeExporter commented 8 years ago
fixed svn 335. (2.0.2-SNAPSHOT)

I have exposed the method allowing you to set all types of profiles.

I have marked the many many smaller helper methods deprecated, just to slim 
down the
api. shrug.

Original comment by fern...@gmail.com on 30 Sep 2008 at 4:14