The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Using Facebook extension

yansheng_hoyansheng_ho RapidMiner Certified Analyst, Member Posts: 1 Learner III
edited May 2020 in Help
<?xml version="1.0" encoding="UTF-8"?><process version="9.2.001">
  <context>
    <input/>
    <output/>
    <macros/>
  </context>
  <operator activated="true" class="process" compatibility="9.2.001" expanded="true" name="Process">
    <parameter key="logverbosity" value="init"/>
    <parameter key="random_seed" value="2001"/>
    <parameter key="send_mail" value="never"/>
    <parameter key="notification_email" value=""/>
    <parameter key="process_duration_for_mail" value="30"/>
    <parameter key="encoding" value="SYSTEM"/>
    <process expanded="true">
      <operator activated="true" class="facebook:FindPageContent" compatibility="1.0.005" expanded="true" height="68" name="Find Page Content" width="90" x="45" y="136">
        <parameter key="Page ID" value="jagadiri.id"/>
        <parameter key="FB Connection" value="Facebook"/>
      </operator>
      <operator activated="true" class="concurrency:loop_values" compatibility="9.2.001" expanded="true" height="103" name="Loop Values" width="90" x="179" y="187">
        <parameter key="attribute" value="Post ID"/>
        <parameter key="iteration_macro" value="loop_value"/>
        <parameter key="reuse_results" value="false"/>
        <parameter key="enable_parallel_execution" value="true"/>
        <process expanded="true">
          <operator activated="true" class="facebook:FindReactions" compatibility="1.0.005" expanded="true" height="68" name="Find Reactions" width="90" x="45" y="34">
            <parameter key="Post ID" value="%{loop_value}"/>
            <parameter key="FB Connection" value="Facebook"/>
          </operator>
          <operator activated="true" class="facebook:FindComments" compatibility="1.0.005" expanded="true" height="68" name="Find Comments" width="90" x="45" y="136">
            <parameter key="Comment ID" value="%{loop_value}"/>
            <parameter key="FB Connection" value="Facebook"/>
          </operator>
          <connect from_port="input 1" to_op="Find Reactions" to_port="example set"/>
          <connect from_port="input 2" to_op="Find Comments" to_port="example set"/>
          <connect from_op="Find Reactions" from_port="example set" to_port="output 1"/>
          <connect from_op="Find Comments" from_port="example set" to_port="output 2"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="source_input 2" spacing="0"/>
          <portSpacing port="source_input 3" spacing="0"/>
          <portSpacing port="sink_output 1" spacing="0"/>
          <portSpacing port="sink_output 2" spacing="0"/>
          <portSpacing port="sink_output 3" spacing="0"/>
        </process>
      </operator>
      <connect from_op="Find Page Content" from_port="example set" to_op="Loop Values" to_port="input 1"/>
      <connect from_op="Loop Values" from_port="output 1" to_port="result 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
      <portSpacing port="sink_result 2" spacing="0"/>
    </process>
  </operator>
</process>

Hi Rapidminer users,

I tried to use facebook extension to extract data from facebook. I notice there is 4 operators in the extension. However there is no example in there. i try it all and only 2 of it success, which is Find Page Content and Find Reactions. Can someone give an example on how to use these operators? 


Tagged:

Answers

  • SGolbertSGolbert RapidMiner Certified Analyst, Member Posts: 344 Unicorn

    I think the extension is outdated, because Facebook did several changes in their own API (and they continue to change it periodically). Their data privacy policies have also changed, so that you need to get permission or be friends with the user to access the data.

    Your best bet is to use the Facebook API directly, either with the Enrich Data by Web Service operator or using some external library like Python's Requests.

    Kind regards,
    Sebastian

Sign In or Register to comment.