Forum
fb share button is not showing after blog post
Hello All,
when i am creating a blog and publishing it.aftert that fb share button not shownig. i can confirm that tweeter and google +button are there.
can any please help what is worng with fb shre button.
Please show us your Diagnostics Report and template. You would have been asked for these when creating your thread.
Perch: 2.8.15 Production mode: Production (100) Installed apps: content (2.8.15), assets (2.8.15), categories (2.8.15), perch_blog (5.0), perch_forms (1.5) DB driver: PDO DB tables: perch2_blog_authors, perch2_blog_categories, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_categories, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_blogs, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 4 App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_forms/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php'); ?> Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Editor plug-ins: markitup H1: 421aa90e079fa326b6494f812ad13e79 L1: 376304bae3ce6e0d5054120fa1b085fc headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 0 content_collapseList: 1 lang: en-gb update_2.1.3: done latest_version: 2.8.15 update_2.2.7: done on_sale_version: 2.8.20 update_2.4.1: done perch_blog_post_url: /blog/post.php?s={postSlug} perch_blog_update: 5.0.1 update_2.6.6: done update_2.8.15: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: bahntechnik PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: bahntechnik PERCH_DB_PREFIX: perch2_ PERCH_TZ: Europe/London PERCH_EMAIL_METHOD: smtp PERCH_EMAIL_HOST: localhost PERCH_EMAIL_AUTH: 1 PERCH_EMAIL_USERNAME: web@tew.co.uk PERCH_LOGINPATH: /perch PERCH_PATH: D:\Sharad-Doc\LBFoster\Localhost Website\Bahntechnik Local Website\perch PERCH_CORE: D:\Sharad-Doc\LBFoster\Localhost Website\Bahntechnik Local Website\perch\core PERCH_RESFILEPATH: D:\Sharad-Doc\LBFoster\Localhost Website\Bahntechnik Local Website\perch\resources PERCH_RESPATH: /perch/resources PERCH_HTML5: 1 PERCH_RUNWAY: PERCH_ERROR_MODE: DIE PERCH_DATE_LONG: %d %B %Y PERCH_DATE_SHORT: %d %b %Y PERCH_TIME_SHORT: %H:%M PERCH_TIME_LONG: %H:%M:%S PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: D:\Sharad-Doc\LBFoster\Localhost Website\Bahntechnik Local Website\perch\templates PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_RWD: PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_STRIPSLASHES: PERCH_PROGRESSIVE_FLUSH: 1 PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_SESSION_TIMEOUT_MINS: 20 HOSTING SETTINGS
PHP: 5.5.11 Zend: 2.5.0 OS: WINNT SAPI: cgi-fcgi Safe mode: not detected MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: bf9ad53b11c9a57efdb1057292d73b928b8c5c77 $ MySQL server: 5.5.5-10.1.9-MariaDB Extensions: Core, bcmath, calendar, ctype, date, ereg, filter, ftp, hash, iconv, json, mcrypt, SPL, odbc, pcre, Reflection, session, standard, mysqlnd, tokenizer, zip, zlib, libxml, dom, PDO, openssl, SimpleXML, wddx, xml, xmlreader, xmlwriter, cgi-fcgi, mysql, mysqli, mbstring, gd, gettext, curl, exif, xmlrpc, Phar, soap, pdo_mysql, pdo_sqlite, imap, tidy, mhash GD: Yes ImageMagick: No PHP max upload size: 64M PHP max form post size: 64M PHP memory limit: 128M Total max uploadable file size: 64M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No PROCESSOR_ARCHITEW6432: AMD64 FCGI_X_PIPE: \.\pipe\IISFCGI-2aa06356-2e0c-4596-bc4b-c5daf3c1a5d9 PHP_FCGI_MAX_REQUESTS: 10000 PHPRC: C:\Program Files (x86)\PHP\v5.5 ALLUSERSPROFILE: C:\ProgramData APPDATA: C:\Windows\system32\config\systemprofile\AppData\Roaming APP_POOL_CONFIG: C:\inetpub\temp\apppools\Bahntechnik\Bahntechnik.config APP_POOL_ID: Bahntechnik CommonProgramFiles: C:\Program Files (x86)\Common Files CommonProgramFiles(x86): C:\Program Files (x86)\Common Files CommonProgramW6432: C:\Program Files\Common Files COMPUTERNAME: SHARAD-PC ComSpec: C:\Windows\system32\cmd.exe FP_NO_HOST_CHECK: NO LOCALAPPDATA: C:\Windows\system32\config\systemprofile\AppData\Local NUMBER_OF_PROCESSORS: 4 OS: Windows_NT Path: C:\Program Files (x86)\PHP\v5.5;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:; PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE: x86 PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel PROCESSOR_LEVEL: 6 PROCESSOR_REVISION: 2a07 ProgramData: C:\ProgramData ProgramFiles: C:\Program Files (x86) ProgramFiles(x86): C:\Program Files (x86) ProgramW6432: C:\Program Files PSModulePath: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\PowerShell\Modules\ PUBLIC: C:\Users\Public SystemDrive: C: SystemRoot: C:\Windows TEMP: C:\Windows\TEMP TMP: C:\Windows\TEMP USERDOMAIN: TARITAS USERNAME: SHARAD-PC$ USERPROFILE: C:\Windows\system32\config\systemprofile VS110COMNTOOLS: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\ windir: C:\Windows windows_tracing_flags: 3 windows_tracing_logfile: C:\BVTBin\Tests\installpackage\csilogfile.log ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php URL: /perch/core/settings/diagnostics/index.php SERVER_SOFTWARE: Microsoft-IIS/7.5 SERVER_PROTOCOL: HTTP/1.1 SERVER_PORT: 8093 SERVER_NAME: localhost SCRIPT_NAME: /perch/core/settings/diagnostics/index.php SCRIPT_FILENAME: D:\Sharad-Doc\LBFoster\Localhost Website\Bahntechnik Local Website\perch\core\settings\diagnostics\index.php REQUEST_URI: /perch/core/settings/diagnostics/?extended REQUEST_METHOD: GET REMOTE_PORT: 2143 REMOTE_HOST: ::1 REMOTE_ADDR: ::1 QUERY_STRING: extended PATH_TRANSLATED: D:\Sharad-Doc\LBFoster\Localhost Website\Bahntechnik Local Website\perch\core\settings\diagnostics\index.php LOCAL_ADDR: ::1 INSTANCE_META_PATH: /LM/W3SVC/20 INSTANCE_NAME: BAHNTECHNIK INSTANCE_ID: 20 HTTPS: off GATEWAY_INTERFACE: CGI/1.1 DOCUMENT_ROOT: D:\Sharad-Doc\LBFoster\Localhost Website\Bahntechnik Local Website APPL_PHYSICAL_PATH: D:\Sharad-Doc\LBFoster\Localhost Website\Bahntechnik Local Website\ APPL_MD_PATH: /LM/W3SVC/20/ROOT IIS_UrlRewriteModule: 7.1.0761.0 HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 HTTP_REFERER: https://localhost:8093/perch/core/settings/diagnostics/ HTTP_HOST: localhost:8093 HTTP_COOKIE: cmsa=1; PHPSESSID=tor4u9fngtmve3ufc2cu8eq1e6 HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 HTTP_CONNECTION: keep-alive FCGI_ROLE: RESPONDER PHP_SELF: /perch/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1450850256.5412 REQUEST_TIME: 1450850256
Your installation is out of date, please make sure you have updated to the latest version before requesting support.
We also need to see your template.
Now I am updated perch folder (Perch: 2.8.20). But fb share button is not showing
As requested twice now, we need to see your template. We really can't help you unless you give us the information we ask for.
Every time you create a thread include the template or page code in question and your Diagnostics Report (short version).
we are using this template to create blog post.html
and the diagnostics report for the same is given below
i will really appriciate if anyone can have look into this and let me know what i am doing worng. why fbshare button not showing on the blog page.
None of that appears to be managed by Perch. Do you see the JavaScript in the HTML output?
Yes I can see the JavaScript in Html output when pressing F12
<li style="display:inline-block;"> <div id="fb-root"></div><script src="https://apis.google.com//scs/apps-static//js/k=oz.gapi.en_GB.cJkIm0jUbF0.O/m=gapi_iframes_style_bubble/exm=auth,plus/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCMfB6uTBe-eJT43Gy1rNo6w6uY2fA/t=zcms/cb=gapi.loaded_2" async=""></script><script src="https://apis.google.com//scs/apps-static//js/k=oz.gapi.en_GB.cJkIm0jUbF0.O/m=auth/exm=plus/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCMfB6uTBe-eJT43Gy1rNo6w6uY2fA/t=zcms/cb=gapi.loaded_1" async=""></script><script src="https://apis.google.com//scs/apps-static//js/k=oz.gapi.en_GB.cJkIm0jUbF0.O/m=plus/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCMfB6uTBe-eJT43Gy1rNo6w6uY2fA/t=zcms/cb=gapi.loaded_0" async=""></script><script async="" src="//www.google-analytics.com/analytics.js"></script><script type="text/javascript" async="" src="https://apis.google.com/js/platform.js" gapi_processed="true"></script><script id="twitter-wjs" src="https://platform.twitter.com/widgets.js"></script><script id="facebook-jssdk" src="//connect.facebook.net/en_GB/all.js#xfbml=1"></script><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script><div class="fb-share-button" data-type="button"></div> </li>
Ok, so I don't think this is anything to do with Perch is it?
okay ,so can anyone please suggest how to fix this please.i am not getting solution for it.
you need something like this
<!-- Your share button code --> <div class="fb-share-button" data-href="https://www.your-domain.com/your-page.html" data-layout="button_count"> </div>
or better still put in a like button and include the share button... see...
https://developers.facebook.com/docs/plugins/like-button