tag:blogger.com,1999:blog-5633425554040914182.post2363558577823387309..comments2023-08-08T16:16:03.791+02:00Comments on Technowobble: How to integrate Facebook's JavaScript SDK with GWTMattias Ekstrandhttp://www.blogger.com/profile/11407306714145804807noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-5633425554040914182.post-72636527275838378102020-07-05T17:41:43.974+02:002020-07-05T17:41:43.974+02:00buy5stareviews
The information you have posted is ...<a href="https://buy5stareviews.com/" rel="nofollow">buy5stareviews</a><br />The information you have posted is very useful. The sites you have referred was good. Thanks for sharing this: <a href="https://buy5stareviews.com/product/buy-negative-facebook-reviews/" rel="nofollow">Buy Negative Facebook Reviews</a><br /><br />IT Servicehttps://www.blogger.com/profile/12231855949548635378noreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-59545538382725243762019-03-13T13:56:11.716+01:002019-03-13T13:56:11.716+01:00Positive site, where did u come up with the inform...Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. <a href="https://mangocityit.com/service/buy-negative-facebook-reviews/" rel="nofollow">Buy Negative Facebook Reviews</a><br />max simthhttps://www.blogger.com/profile/00268614025572458298noreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-50255739671397092772012-02-12T08:18:39.755+01:002012-02-12T08:18:39.755+01:00check this out, properly working:
http://code.goog...check this out, properly working:<br />http://code.google.com/p/gwt-gae-fb/Anonymoushttps://www.blogger.com/profile/03476109438245334898noreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-44764196781244193262011-03-03T07:33:51.015+01:002011-03-03T07:33:51.015+01:00I agree with Phil that doing it in GWT code is exa...I agree with Phil that doing it in GWT code is exactly the same if you prefer it over plain javascript.<br /><br />Another issue that I faced was the case that the user is already logged in into facebook and the page/application. I didn't receive the 'auth.sessionChange' event to trigger the onLogin method.<br /><br />Therefore, I added a call to getLoginStatus right after the init, with the same onLogin and onLogout calls:<br /><br /><br />FB.getLoginStatus(function(response) {<br /> if (response.session) {<br /> // A user has logged in, and a new cookie has been saved<br /> onLogin();<br /> } else {<br /> // The user has logged out, and the cookie has been cleared<br /> onLogout();<br /> } <br />});Anonymoushttps://www.blogger.com/profile/18169028075185658665noreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-38337652865807700532011-03-01T01:05:37.148+01:002011-03-01T01:05:37.148+01:00Great post. I was in the process of figuring this ...Great post. I was in the process of figuring this out and it saved me lots of time.<br /><br />I believe I fixed the "undefined" problem in my code by exporting my GWT based init code to "$wnd.fbAsyncinit"...the callback FB will look for. That way the FB code calls your init code itself once its loaded instead of you trying to time it. Then all you have to do is call your "export" method early on so its there before FB is loaded. Its basically the same as what Guy has posted above but lets you still write Java if you wish.Anonymoushttps://www.blogger.com/profile/00849400429503038501noreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-12539860844371617592011-02-28T10:00:28.359+01:002011-02-28T10:00:28.359+01:00Excellent Post, it was very helpful and simple.
Re...Excellent Post, it was very helpful and simple.<br />Regarding the problem of the time it takes for the FB object to be loaded, you can use the suggestion for Asynchronous Loading from FB site: http://developers.facebook.com/docs/reference/javascript/fb.init/<br /><br />In general I moved the code for initialization of the FB object from the GWT code to the HTML file<br /><br /><br />...<br /> window.fbAsyncInit = function() {<br /> FB.init({appId: 'YOUR-APP-ID', status: true, cookie: true,<br /> xfbml: true});<br /> FB.Event.subscribe('auth.sessionChange', function(response) {<br /> if (response.session) {<br /> // A user has logged in, and a new cookie has been saved<br /> onLogin();<br /> } else {<br /> // The user has logged out, and the cookie has been cleared<br /> onLogout();<br /> } <br /> });<br /> };<br /> (function() {<br /> var e = document.createElement('script');<br /> e.async = true;<br /> e.src = document.location.protocol<br /> + '//connect.facebook.net/en_US/all.js';<br /> document.getElementById('fb-root').appendChild(e);<br /> }());<br />...Anonymoushttps://www.blogger.com/profile/18169028075185658665noreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-63864066976508116602010-11-29T01:15:30.060+01:002010-11-29T01:15:30.060+01:00I also have the problem with $wnd.FB == undefined....I also have the problem with $wnd.FB == undefined. It is incrediibly annoying because sometimes it works and sometimes (especially when I need it) it does not. I am completely stuck here. Did anyone come up with a solution yet?<br />Thanks!!<br /><br />MalteAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-27859434658764624912010-09-30T02:51:20.389+02:002010-09-30T02:51:20.389+02:00Thanks a lot !!!Thanks a lot !!!Suatnoreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-92116620312996722902010-09-01T09:24:56.615+02:002010-09-01T09:24:56.615+02:00Hi,
I've actually never had any problems with...Hi,<br /><br />I've actually never had any problems with the FB-object not being ready when I've accessed it...<br /><br />I guess one viable option would be add the FB-api in a non-async way, or listen to some callback function that would update some "FBReady" variable that you could check before using the object?<br /><br />Let's ask other readers to collaborate to come up with a working example, shall we?Mattias Ekstrandhttps://www.blogger.com/profile/11407306714145804807noreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-21350869851928584032010-09-01T09:19:16.700+02:002010-09-01T09:19:16.700+02:00Thank you very much, Mattias.
This article is very...Thank you very much, Mattias.<br />This article is very helpful for me.<br /><br />I am using Smartgwt. I modified a little then the codes can work.<br /><br />Still the same problem as George said, "undefined". <br /><br />I tried to use " if (typeof($wnd.FB)== undefined) " or "try{}catch(e){}" before "$wnd.FB.api" call, but it doesn't work.<br /><br />Can you give me a little tips how to do this?<br />I am a newbie of Javascript.luluhttps://www.blogger.com/profile/03636230485757985227noreply@blogger.comtag:blogger.com,1999:blog-5633425554040914182.post-35206335678899996032010-07-19T12:24:59.853+02:002010-07-19T12:24:59.853+02:00Great use of GWT =)
Only challenge I had with your...Great use of GWT =)<br />Only challenge I had with your example was the lack of a "wait until $wnd.FB !== undefined" before any FB calls.<br />Thanks for sharing!Georgehttps://www.blogger.com/profile/05068029105168945300noreply@blogger.com