Zencart auto Facebook plug-in configuration and use

Source: Internet
Author: User
Zencart auto Facebook plug-in configuration and use

Facebook allows users to implement virtual communication at no cost. Do you know the marketing results of Facebook? Another benefit of Facebook web pages is that they help you increase your search engine rankings. Zencart is an open sourceProgramA wide range of senior programmers develop zencart plug-ins, which further promotes the development of the zencart program. So far, many good zencart plug-ins can be downloaded for free, this article describes the main features of the zencart auto Facebook plug-in and how to install it.

Main features of the zencart auto Facebook plug-in:

1. The auto Facebook plug-in allows your zencart website to automatically update your online shop's Facebook after you add products to the background.

Required environment:

Zencart 1.3.9 +
PHP 5 +
Curl
JSON
Install zencart auto Facebook plug-in:

Step 1: Download the plug-in

Auto Facebook plug-in

Step 2: Create a Facebook application

1. log on to your Facebook account (it is best to use the private Facebook account of the zencart online store, rather than your personal account)

2. Open the http://www.facebook.com/developers page and click the set up new application button.
Demo of zencart auto Facebook plug-in installation steps-set up new application button

3. Set the Facebook application name
The name can be the domain name of your zencart online store, or other
Demo of zencart auto Facebook plug-in installation steps-name Facebook application
After filling in the information, click "create application ".

4. Enter the verification code on the new page and click "Submit ".

5. The new page is to fill in some basic information about the Facebook application.
Demo of zencart auto Facebook plug-in installation steps-enter the about information
After filling in the information, click "Save changes.

6. The newly opened page will likely return to the my applications page of Facebook,
Demo of zencart auto Facebook plugin installation steps-edit settings
Click "Edit Settings" to return to the Facebook applications settings page.
7. Select "web site" in the navigation bar of the newly opened page ",
Demo of zencart auto Facebook plug-in installation steps-edit web site information
The form of site URL is: http://zencartmentor.com/do not WWW and the last/character should be written
Enter the site domain in the format of zencartmentor.com. Do not use http: // www or the last/character.
After filling in the information, click "Save changes.
Return to the my applications page in Step 6.
The Application ID and application secret on the page will be used in the next step. Therefore, the page is not closed for the moment.

Step 3: perform authentication

1. decompress the downloaded package. Open facebook_authorization.php.
Change the value of $ app_id in the fourth row to the Application ID obtained in the previous step.
Change the value of $ app_secret in the fifth line to the application secret obtained in the previous step.
Change the value of $ app_location in Row 6 to http://zencartmentor.com/facebook_authorization.php (Change zencartmentor.com to your own domain name)
2. Upload the facebook_authorization.php file to the root directory of the zencart website.

3. Open the $ app_location address in step 1 in a browser, that is, the http://zencartmentor.com/facebook_authorization.php

4. A new page appears, as shown in figure

Demo of zencart auto Facebook plugin installation steps-request for permission
Click "allow" to display the new page:

Demo of zencart auto Facebook plugin installation steps-Authentication successful
Page's ID and Page's token displayed on the page
It will be used in the next step. It is best to save it.

Step 4: configure the file

Open the admin/Includes/modules/update_product.php file after decompression.
Find the rows from 90 to 95CodeSegment, as follows:

View sourceprint?
1 $ app_id = "Your Application ID"; // given when you created app

2 $ app_secret = "your application secret"; // given when you created app

3 $ page_id = "your page ID"; // obtained from running facebook_authorization.php from your browser

4 $ page_token = "your page token"; // long number obtained from facebook_authorization.php

5 $ store_name = "yourstore.com"; // store name I. e. "Mary's car shop", or "mikescupcakes.com ."

6 $ store_url = 'HTTP: // www.yourstore.com '; // path to your store without the trailing "/"
Set $ app_id and $ app_secret to the Application ID and application secret obtained in step 7 of step 2.
Set $ page_id and $ page_token to the page's ID and Page's token obtained in Step 4 in step 3.
$ Store_name
$ Store_url is your domain name but cannot contain/characters.

Save the changes

Step 5: upload files

Rename the admin folder in the decompressed package to the name of the current background folder of your zencart website.
Then upload the folder to the root directory of the zencart website.

The installation is complete.
After you add a new product in the background, the product information will be automatically added to your Facebook.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.