WordPress.org

Ready to get started?Download WordPress

Forums

Facebook AWD All in one
[resolved] V1.4 issues (26 posts)

  1. iburley7
    Member
    Posted 1 year ago #

    I've just updated to v1.4 through WP updates, and I am now having some difficulties!

    On the settings screen, I get a 'login with Facebook button', but clicking it does nothing (I've tried in both Safari and Chrome). As a result of this I cannot now use the publishing features.

    The 'connect with facebook' button on the login screen does not do anything either.

    The 'like' button, comments box, and like box sidebar widget do not appear on any pages or posts.

    I have gone through the settings to make sure the features are turned on as they were prior to the update (having to do this was frustrating, having taken a lot of time to set the plugin up once!).

    I have created a very simple opengraph object, which I have set for all types of page.

    When running a number of pages and posts through the Facebook Developer debugger, the only return which is unexpected was the og:image, which seems to return my app icon rather than an image from the post.

    I have tried my opengraph object with %IMAGE% in the image URL box, and with a blank entry, and with Auto load image attachments set to both yes and no, but the debugger still returns my app icon rather than an image from the page or post.

    Any advice greatly received! (or a link for the last version 1.3.x.x...)

    http://www.6harrow.org

    http://wordpress.org/extend/plugins/facebook-awd/

  2. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    On the admin notice I said you will have to reconfigure the settings.

    If you want to use the featured image, you must set the auto load images to On. Or use the %IMAGE% only for posts and pages.

    You must set an image manually for your homepage(if archives) or archives pages.

    For the button on the login screen YES you find a BUG.
    But in the admin area it works ?
    I will check this part.

  3. iburley7
    Member
    Posted 1 year ago #

    Does it have to use a featured image now?

    In the previous version %IMAGE% would pick up the first image in the post if no featured image was used - and currently I am seeing my facebook app icon in the og:image tag in the debugger, not sure why it is picking that up?

    The login button does not work in the admin area either for me.

    Any idea why the like button and comments box are not appearing on post pages - definitely set to do so on the plugin pages?

    Also, the like box I have set up in the side bar is not showing.

    I've also got this message in the debugger:

    "fb:admins and fb:app_id tags are missing. These tags are necessary for Facebook to render a News Feed story that generates a high click-through rate."

    Not sure where to enter the fb:admins and fb:app_id to clear this message.

  4. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    fb:admins and fb:app_id will be added tonight.

    Can you check with firebug if there is a javascript error in admin area that can break the login button ? Maybe some plugins conflict...

    Can you paste log result here ?

    About the image, i will check tonight.

  5. iburley7
    Member
    Posted 1 year ago #

    I was just typing an update when your response came through :)

    I will try opening the error console in Safari, but I'm no expert so you may need to point me in the right direction if what I paste in isn't useful. I will post the results separately.

    UPDATE -

    Setting a featured image for a post does make %IMAGE% return a correct og:image tag. Will it be possible to make this work for the first image in the post as well, like the previous version did, or will we always have to use a featured image?

    Could it be that I am not seeing the like button, comments box and like box widget as I am not signed in?

  6. iburley7
    Member
    Posted 1 year ago #

    /**
     *
     * @author alexhermann
     *
     */
    var AWD_facebook = {
    
    	FBEventHandler : function ()
    	{
    		if(awd_fcbk.FBEventHandler.callbacks){
    			jQuery.each(awd_fcbk.FBEventHandler.callbacks,function(index,value){
    				var AWD_actions_callback = window[this];
    				if(jQuery.isFunction(AWD_actions_callback))
    					AWD_actions_callback(this);
    			});
    		}
    	},
    
    	callbackLogin : function(response,redirect_url)
    	{
    
    		var redirect = '';
    		if(response.authResponse){
    			if(!redirect_url){
    				window.location.replace(awd_fcbk.loginUrl);
    			}else{
    				redirect = "?redirect_to="+redirect_url;
    				window.location.replace(awd_fcbk.loginUrl+redirect);
    			}
    		}
    	},
    
    	connect :function(redirect_url)
    	{
    		FB.login(
    			function(response){
    				AWD_facebook.fbConnected = true;
    				AWD_facebook.callbackLogin(response,redirect_url);
    			},
    			{
    				scope: awd_fcbk.scope
    			}
    		);
    		return false;
    	},
    
    	logout : function(){
    		window.location.href = awd_fcbk.logoutUrl;
    	},
    
    	fbConnected : false,
    
    	isFbConnected : function(){
    		FB.getLoginStatus(function(response) {
    			if (response.status === 'connected') {
    				AWD_facebook.fbConnected = true;
    				AWD_facebook.access_token = response.authResponse.accessToken;
    			}
    		});
    		return AWD_facebook.fbConnected;
    	},
    };
    
    jQuery(document).ready(function($){
    	//add usefull tool for creating connect button by hand.
    	$('.AWD_facebook_connect_button').live('click',function(e){
    		e.preventDefault();
    		var redirect = $(this).data('redirect');
    		AWD_facebook.connect(redirect);
    	});
    });

    Is this what you were after?

    I also get the message in the error console:

    "Facebook_awd.js

    Reference issue
    Can't find variable: FB"

  7. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    Reference issue
    Can't find variable: FB"

    You get that only on the login page no ? in admin too ?
    Social plugin should works. look here http://www.ahwebdev.fr it uses the 1.4 and fb plugins are working.

  8. italynstylion
    Member
    Posted 1 year ago #

    I am having the same Login button troubles as well. Sometimes it shows up and sometimes it doesn't. When it does show up it often doesn't launch the login app.

    I have noticed that the failure of the login button is also directly correlated to the "Like" button showing up at the top of posts. Either they both show up or NONE of them show up.

    If also found that the problem is intermittent. Sometimes if you refresh the page a few times it will work.

  9. iburley7
    Member
    Posted 1 year ago #

    The code and the message in the error console were taken after clicking the button on the Facebook AWD admin page on the dashboard.

    I'm seeing the login button consistently in the sidebar widget, the login page, and the admin page on the dashboard, but they all appear to do nothing when clicked.

    I never see the like button at the top of posts, even though it is turned on.

  10. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    Are you both using html5 or xfbml buttons ?

  11. iburley7
    Member
    Posted 1 year ago #

    I was using html5. I have just changed the like button to xfbml - no change noticed.

    I do not have the option to change the login button between the 2 standards.

  12. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    Can you try to download the version from gitHub ? i update some line of code...
    https://github.com/AHWEBDEV/Facebook-AWD

  13. iburley7
    Member
    Posted 1 year ago #

    I can't get the gitHub version to activate:

    Fatal error: Cannot redeclare class AWD_facebook in /home/iburley7/6harrow.org/wp-content/plugins/AHWEBDEV-Facebook-AWD-cd18b7c/AWD_facebook.php on line 20

  14. iburley7
    Member
    Posted 1 year ago #

    Sorry - my fault, somehow had v1.4 and v1.4.1 installed, and 1.4.1 wouldn't activate as 1.4 was activated...!

  15. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    Ok and the folder of the 1.4.1 is named "facebook-awd" ? this is important...

    So after activation did you see difference ?

  16. iburley7
    Member
    Posted 1 year ago #

    Sorry, no difference.

    I have removed 1.4 and uploaded 1.4.1 to "facebook-awd" in wpcontent/plugins

    Uncaught ReferenceError: FB is not defined facebook_awd.js:38
    AWD_facebook.connect facebook_awd.js:38
    (anonymous function) facebook_awd.js:72
    f.event.dispatch jquery.js:3
    f.event.add.h.handle.i jquery.js:3
  17. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    Ok i see what's wrong, I will fix it, and send you testing code. thanks for report and help.

  18. italynstylion
    Member
    Posted 1 year ago #

    Awesome! Let us know when the code is live! I need it too :)

  19. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    The 1.4.1 is online somebody can test it ?

  20. iburley7
    Member
    Posted 1 year ago #

    I deleted the previous install, and have installed the version available here. I am not getting any further using Safari.

    Using Chrome and Firefox I get the Facebook login screen as a new page in the same window if I click the sidebar widget login button, or the Facebook Connect button on the login page. I get nothing if I click login on the admin page.

    Filling in my Facebook login details does not seem to log me in to the site, although using Firefox I did get a 'new device' notification email from Facebook.

  21. italynstylion
    Member
    Posted 1 year ago #

    Things seem to be showing up now and functioning SOMETIMES as long as you hit the refresh button. However, I now have a bunch of junk at the bottom of my pages relating to the Facebook AWD app. It's like 3 pages of code. Go to my blog and scroll to the bottom to see what I mean.
    http://www.CarsAndCranks.com

  22. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    @italynstylion 1; read settings, 2 a little search, 2 you activate the mode Debug. Turn it OFF.

  23. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin is not directly linked with content of Facebook frames, login form, notification, checkpoint pages are NOT COMMING FROM THE PLUGIN.

    However the role of the plugin is to open thoses page when the user ask for it.
    The previous errors with the login was fixed and was due to a Javascript error.
    I tested up the last version (GitHub version) on Safari Chrome, and firefox, and all works great.

    One last thing is that you shoudl verify some points:
    _ check that firefox, safari and chrome are NOT in private mode.
    _ check that cookie are allowed.
    _ check that any addblock system are not blocking facebook requests.
    _ Each time you make change on login settings, Clear all cookie, close your browser and restart fresh tests.

  24. iburley7
    Member
    Posted 1 year ago #

    I have checked browser settings, cleared all browsing data (in Safari, Chrome, and Firefox) and installed 1.4.2 from GitHub this morning.

    Clicking the Facebook login button on both the login screen and the admin screen still do not open the Facebook login screen on my site.

    I still do not see the like button on my post pages.

    I still do not see the comments box on my post pages.

    I still do not see the like box in my sidebar.

    It's a real shame as in the past this was the only Facebook plugin I found to work as I wanted it to, but since 1.4 I have not been able to get functionality.

    I have reinstalled Simple Facebook Connect in place of AWD, and while there are some things I do not like about the way it works, at least I can get Facebook integrated on my site with it.

    I will keep checking back as this plugin develops and should I find it works for me again in the future I am sure I will come back to it.

    Thank you for all your support in the past.

  25. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year ago #

    You do not have any url to test the plugin that will help me to see what's wrong with your site ? install the plugin on a fresh wordpress install and you will see that it's work.

  26. phpspider
    Member
    Posted 1 year ago #

    Hello,

    i am using Version 1.5.2 and facing same issue at the time of facebook login. At front of my site it's not working but in admin it's working very well.

    It was working before updating wordpress. Current version of WordPress is 3.4.2.

    Error i am getting

    TypeError: AWD_facebook.FbEventHandler is not a function

    AWD_facebook.FbEventHandler();

    Please guide m i doing some mistake?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.