Skip to main content

Posts

Post on behalf of Facebook Page using Graph API

Assuming someone would like to give your permissions to post on his Facebook Pages :-), you need to do following things: Ask for the publish_stream and manage_pages using Facebook Authentication Dialog Get Page Access Token. Such access token can be retrieved by issuing an HTTP GET to /USER_ID/accounts with the manage_pages permission. This will bring you list of the pages and access tokens of such pages. You also can you /PAGE_ID?fields=access_token request to get access token for specific page. (Reference - https://developers.facebook.com/docs/reference/api/page/) Once you have page access token you will be able to post. Posting can be done using following parameters: curl -F 'access_token={ACCESS_TOKEN}' \ -F 'message={MESSAGE TO POST}' \ https://graph.facebook.com/{PAGE}/feed

Magento API: SOAP vs XML-RPC

Some time ago our company consults to our clients that started working on Facebook Store application that should be able to integrate with Magento. After quick overview of Magento API documentation it was clear that we need to select one of the two API methods provided by Magento - SOAP or XML-RPC. First version of Magento Facebook App was developed with SOAP version of API. And then it starts ... Since application should be able to communicate with different installation of Magento, we've learned a tons of bugs for each major Magento version. After more than half year of fighting with SOAP and become an experts in Magento API bugs, we decided to give a try to XML-RPC. And here was very nice surprise that we already didn't expected from Magento developers :-). Almost no bugs related to Magento installaion ... So for everyone checking Magento API - SOAP vs XMLRPC - the absolute winner is XMLRPC.

Paypal Sandbox - The link you have used to enter the PayPal system is invalid.

When paying with recurring payments on Paypal Sandbox I've got following error message - "The link you have used to enter the PayPal system is invalid. Please review the link and try again." It take me too long to figure is out but the problem was that the account was not verified. To make recurring payments work on Sandbox Paypal account, in additions to having your account to be upgraded to business account, you have you verify the sandbox account email address. Good luck

Magento API Filter operators and list of fields for Product.List

Following are operators you can use when create filter for Magento Api calls: from returns rows that are after this value (datetime only) to returns rows that are before this value (datetime only) eq returns rows equal to this value neq returns rows not equal to this value like returns rows that match this value (with % as a wildcard) nlike returns rows that do not match this value (with % as a wildcard) in returns rows where the value is in this array (pass an array in) nin returns rows where the value is not in this array (pass an array in) is null returns rows that are null notnull returns rows that are not null moreq gt returns rows greater than this value lt returns rows less than this value gteq returns rows greater than or equal to this value lteq returns rows less than or equal to this value finset And following are the lits of fields you can filter on using Product.List api call [0] => entity_id [1] => entity_type_id [2] => attribute_set_id [3] => type_id [4] =>...

Back Up SQL Express database - Software

I was looking for simple script to Back Up SQL Server Express database hosted on one of my servers. There are many articles explaining how to configure it to be done with SQL scripts and scheduled tasks, but what I found was much more useful (at least for me) Here is very powerful Backup, Zip and FTP Utility SQLBackupAndFTP software. It even has free version for those who don't need to schedule more than 2 DB backups.

All Paypal Payment Methods Explained

Paypal own documentation about different payment methods is terrible. There are too many resources, different version and too many similar name. Following article explain in simple words all Paypal Payment Methods - http://www.codeproject.com/KB/aspnet/paypal_c_aspnet.aspx#PayPalIntroduction This also includes C# code examples.