Using Code To Publishing Photo to a Facebook Page

By using Rules Module Actions "Execute Custom PHP Code" for Events like update or saving contents,
or By using APIs hook_node_insert($node) for example, you can publish a photo type to your Facebook Page.
see the below test code.

<?php

 

Working with Facebook Events

Please search the issue queue for examples on how to work with Facebook Events.

Update a remote Facebook publication based on node changes.

Chances that you are publishing a Facebook publication link on the user timeline or to a Facebook fan page upon node creation are quite high.

The video tutorial and rules can help you greatly with that. The problem arises when you want to keep track of the changes in your node and reflect those changes in your Facebook publication. To do so you will need to store the facebook publication remote ID Facebook assigns to your publication when is posted.

The most common place to store this is in the Facebook Publication entity you created. Then the workflow is:

Facebook Autopost

Using Facebook Autopost to post node creation to a FB account

Configure Facebook App

  • Go to https://developers.facebook.com and create a developers account.
  • Click on '+Create new app'
    • Give your app a name and (optional) namespace
  • Take note of the APP ID and APP Secret

Installing Module

Using Patterns with Facebook Likebox

Facebook likebox provides an optional submodule named fb_likebox_patterns since version 7.x-1.4, allowing full integration with the module patterns.
Patterns provides an extremely powerful way to perform automatic system configuration. A set of patterns with the most common configurations of Facebook Likebox are provided in the submodule, and the configuration of the module with patterns can be done in just one click.
Since version 7.x-1.7 of FB Likebox we recommend the use of Patterns 7.x-2.x.

How to enable patterns?

Patterns provides a very detailed documentation for site builders and developers. Here you can find the installation instructions for Patterns 7.x, that is the only version currently supported by FB Likebox.
Remember to enable the submodule "FB Likebox Patterns" at 'Modules' section ('admin/modules').

Static and Dynamic Thumbnails for Facebook

We wanted to declare a specific version of our logo as available when sharing to Facebook from a site, but also to retain the ability to select images from the shared page. The standard meta-tag method limited us to a single thumbnail, and prevented page-specific thumbnails from appearing.

To provide both static and page-specific thumbnails, add the new image for all pages to the header area of the page template and assign to it the existing Drupal “element-invisble” class. Facebook will still load and display this "invisible" image, along with other suitable images on the page.

Pages

Subscribe with RSS Subscribe to RSS - facebook