Страница 1 из 1

facebook платежи

СообщениеДобавлено: 22 ноя 2013, 01:23
KayrohInc2
Всем привет. Не очень разобрался с facebook платежами, поэтому пишу сюда.
сам вызов функции понятен.
FB.Canvas.Pay(
product: "YOUR_PRODUCT_URL",
quantity: 2,
callback: delegate(FBResult response) {
Debug.Log(response.Text);
}
);


не понятно где создавать файлы и как использовать Open Graph

Firstly, we need to define a Friend Smash Coin and inform Facebook of its existence. Products in the Local Currency Payment system are represented by a special kind of Open Graph object of type og:product.

Inside the /friendsmash_complete/opengraph directory, you should find an empty coin.html file. Open the file in a text editor of your choice, and copy/paste in the following code:

Если не сложно- поделитесь опытом.

Re: facebook платежи

СообщениеДобавлено: 18 июн 2014, 15:55
Cybernoise
тоже не могу разобраться с этим (

не могу понять где хранить файл :

Синтаксис:
Используется csharp
<!DOCTYPE html>
<html>
 <head prefix=
    "og: http://ogp.me/ns#
     fb: http://ogp.me/ns/fb#
     product: http://ogp.me/ns/product#"
>
    <meta property="og:type"                   content="og:product" />
    <meta property="og:title"                  content="Friend Smash Coin" />
    <meta property="og:image"                  content="http://www.friendsmash.com/images/coin_600.png" />
    <meta property="og:description"            content="Friend Smash Coins to purchase upgrades and items!" />
    <meta property="og:url"                    content="http://www.friendsmash.com/og/coins.html" />
    <meta property="product:plural_title"      content="Friend Smash Coins" />
    <meta property="product:price:amount"      content="0.30"/>
    <meta property="product:price:currency"    content="USD"/>
    <meta property="product:price:amount"      content="0.20"/>
    <meta property="product:price:currency"    content="GBP"/>
  </head>
</html>
 


на что указывает строчка ? :
<meta property="og:url" content="http://www.friendsmash.com/og/coins.html" />

product: "YOUR_PRODUCT_URL", - урл на первый фаил или тоже что и в meta property="og:url" ?

Re: facebook платежи

СообщениеДобавлено: 29 июл 2014, 18:25
AppCode
У кого то получилось создать компанию для рабочих платежей или нет? Я столкнулся с тем что: при выборе страны и региона из их списка, получаю ошибку что регион не верный.