Re: Easily integrate your Miva Merchant into Facebook
Hi Bill: Thanks, I found it on the hyperarts site. For anyone else looking for the SDK, go to
http://www.hyperarts.com/blog/custom...st_reveal_tab/
and scroll down to paragraph "Installing the Facebook PHP SDK" and you'll see the link for the zip file.
Larry
Announcement
Collapse
No announcement yet.
Easily integrate your Miva Merchant into Facebook
Collapse
X
-
Re: Easily integrate your Miva Merchant into Facebook
The link is in the "how to" by hyperarts. See my "how to" which refers you to that "how to". Theirs is very complete with pictures to go with their instructions. They also provide the link to the latest php sdk at facebook. You can't do this whole thing if you have not followed the instructions in the hyperarts "how to".Last edited by wcw; 04-22-11, 06:55 AM.
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Hi again Bill: I'm seaching all over the facebook docs for that zip file. I found an example of this php file. Is this it? If not, do you have a link to the zip file?
<?php
define('YOUR_APP_ID', 'your app id ');
define('YOUR_APP_SECRET', 'your app secret');
function get_facebook_cookie($app_id, $app_secret) {
$args = array();
parse_str(trim($_COOKIE['fbs_' . $app_id], '\\"'), $args);
ksort($args);
$payload = '';
foreach ($args as $key => $value) {
if ($key != 'sig') {
$payload .= $key . '=' . $value;
}
}
if (md5($payload . $app_secret) != $args['sig']) {
return null;
}
return $args;
}
$cookie = get_facebook_cookie(YOUR_APP_ID, YOUR_FACEBOOK_SECRET);
$user = json_decode(file_get_contents(
'https://graph.facebook.com/me?access_token=' .
$cookie['access_token']));
?>
<html>
<body>
<?php if ($cookie) { ?>
Welcome <?= $user->name ?>
<?php } else { ?>
<fb:login-button></fb:login-button>
<?php } ?>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({appId: '<?= YOUR_APP_ID ?>', status: true,
cookie: true, xfbml: true});
FB.Event.subscribe('auth.login', function(response) {
window.location.reload();
});
</script>
</body>
</html>
Thanks, Larry
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
You download that sdk and unzip it. One of the files inside the zip is called facebook.php. That is the one you FTP to your /facebook/ directory that you created in your domain.
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Hello Bill: Sorry, but I have another question. I've modified your example PHP file and have named it miva2fb.php. However I'm confused on what the sdk file should contain. I'm looking at facebook's developer site for my app, is the code there supposed to be copied onto our server and named facebook.php?
Thanks, Larry
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
The "how to" link is above. The link to the EmporiumPlus business page is also above. If you click the business page link you will see the business page with the menu items on the left side (column). Click the one that says Miva Merchant Modules (see the image in the post above).
Leave a comment:
-
Re: Easily integrate your Miva Merchant into Facebook
Hi Bill: We are attempting to get up to speed on facebook ourselves but I am unclear as to how to use your example shown here to do that. I went to your facebook page expecting to be able to view your site from there, but find I cannot. I don't see the links to "All Products", "Basket" & "Checkout" there. What an I missing? Should I be able to find your site displayed on facebook?
A further explanation about what you've done and how I can do the same would be greatly appreciated.
Regards, Larry
Leave a comment:
-
Easily integrate your Miva Merchant into Facebook
We've been running Miva Merchant inside our Facebook business page for about a month now and I think all the little gotchas have been worked out.
The page is using the new iframe tabs for content such as the store, complete with search. We also created iframe tabs for best sellers, deal of the day, etc. The sky is the limit since you create the new tabs and put whatever content you want in them. Since the tab is streaming live data from your Miva Merchant store you have full store morph editing control over the look and feel of your pages and your prices and inventory are updated in real time. You are not locked into anybody's design/layout. You also avoid having 3rd party advertising, e.g. "powered by xxxx" on your iframe tab. You also can use your own icons for the left menu items. Best of all, the integration into Facebook is free. You can do the same thing with your Miva Merchant store if you have created your business page.
I posted a "how to" at http://www.emporiumplus.com/v5/fb_howto.txt It is using the Emporium Plus Tool Kit for a few of the features. However, you could do the integration without the Tool Kit. You'd just be giving up some features.
You can see the live page at http://www.facebook.com/EmporiumPlus
If you have not entered into our Facebook Fan of the Day, see this thread for details http://extranet.mivamerchant.com/for...d.php?t=104132Tags: None
Leave a comment: