Problema cu facebook sharer. [rezolvat]

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

Post Reply
The Kalu
Fost administrator
Fost administrator
Posts: 13712
Joined: 09 Oct 2010, 12:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 328 times
Been thanked: 646 times
Contact:

03 Jun 2017, 22:16

Chiar daca afiseaza acel text in patratel ma trimite pe linkul corect, doar ca nu afiseaza ce trebuie.
Image

Nu inteleg unde am gresit :(
Image
Image
RoyalServer 2
User avatar
k i n g
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3092
Joined: 17 Sep 2012, 12:23
Detinator Steam: Da
CS Status: x
Reputatie: Fost moderator ajutator
Restrictie moderator
Nume anterior: k1NNG , TheKing
1.5/3
Utilizator neserios ( tepar )
Location: Pitesti
Has thanked: 34 times
Been thanked: 101 times

03 Jun 2017, 22:23

și codul butonului de share unde e?

<meta property="og:url" content="https://test.com">
The Kalu
Fost administrator
Fost administrator
Posts: 13712
Joined: 09 Oct 2010, 12:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 328 times
Been thanked: 646 times
Contact:

03 Jun 2017, 22:29

k i n g wrote:și codul butonului de share unde e?

<meta property="og:url" content="https://test.com">
Este si ala dar nu inteleg de ce face asa

Code: Select all

 $actual_link = (isset($_SERVER['HTTPS']) ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; 
<div class="fb-like" data-href="<?php print $actual_link; ?>" data-colorscheme="dark" data-layout="button_count" data-action="like" data-size="large" data-show-faces="true" data-share="true"></div>
Cu debugger de la ei la fel, acelasi rezultat.
https://image.prntscr.com/image/202c1b4 ... 0480df.png
Image
User avatar
k i n g
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3092
Joined: 17 Sep 2012, 12:23
Detinator Steam: Da
CS Status: x
Reputatie: Fost moderator ajutator
Restrictie moderator
Nume anterior: k1NNG , TheKing
1.5/3
Utilizator neserios ( tepar )
Location: Pitesti
Has thanked: 34 times
Been thanked: 101 times

03 Jun 2017, 22:35

| Afiseaza codul
caution-solid
Warnings That Should Be Fixed

    Inferred Property
    The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
    Share App ID Missing
    The 'fb:app_id' property should be explicitly provided, Specify the app ID so that stories shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog.
    Inferred Property
    The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

adaugă

<meta property="og:url" content="<?= "http://". $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>" />

în loc de adresa ta url și vezi dacă merge.

https://developers.facebook.com/tools/d ... %2520Danut

apare ok văd
The Kalu
Fost administrator
Fost administrator
Posts: 13712
Joined: 09 Oct 2010, 12:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 328 times
Been thanked: 646 times
Contact:

03 Jun 2017, 22:38

k i n g wrote:
| Afiseaza codul
caution-solid
Warnings That Should Be Fixed

    Inferred Property
    The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
    Inferred Property
    The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
    Share App ID Missing
    The 'fb:app_id' property should be explicitly provided, Specify the app ID so that stories shared to Facebook will be properly attributed to the app. Alternatively, app_id can be set in url when open the share dialog.
    Inferred Property
    The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

adaugă

<meta property="og:url" content="<?= "http://". $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>" />

în loc de adresa ta url și vezi dacă merge.

https://developers.facebook.com/tools/d ... %2520Danut

apare ok văd

In sfarsit s-a rezolvat, mersi oricum king :P


Am facut scrape manual la link-uri, pff
Image
Post Reply

Return to “Discutii generale”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 666 guests